TicketDB mount: show console ID as big endian

This commit is contained in:
d0k3 2020-08-14 14:05:27 +02:00
parent 15bf632143
commit f48bb58bac

View File

@ -135,7 +135,7 @@ bool ReadVBDRIDir(VirtualFile* vfile, VirtualDir* vdir) {
continue; continue;
memset(vfile, 0, sizeof(VirtualFile)); memset(vfile, 0, sizeof(VirtualFile));
snprintf(vfile->name, 32, NAME_TIK, tid, getbe32(tick_info[vdir->index].console_id)); snprintf(vfile->name, 32, NAME_TIK, tid, getle32(tick_info[vdir->index].console_id));
vfile->offset = vdir->index; // "offset" is the internal buffer index vfile->offset = vdir->index; // "offset" is the internal buffer index
vfile->size = tick_info[vdir->index].size; vfile->size = tick_info[vdir->index].size;
vfile->keyslot = 0xFF; vfile->keyslot = 0xFF;