savestate gamecode printing was endian-wrong
This commit is contained in:
parent
51e478e66a
commit
6ab5ff5917
|
@ -1141,7 +1141,7 @@ static bool ReadStateChunks(EMUFILE* is, s32 totalsize)
|
|||
printf("\tSave created: %04d-%03s-%02d %s %02d:%02d:%02d\n", tm.get_Year(), DateTime::GetNameOfMonth(tm.get_Month()), tm.get_Day(), wday[tm.get_DayOfWeek()%7], tm.get_Hour(), tm.get_Minute(), tm.get_Second());
|
||||
}
|
||||
printf("\tGame title: %s\n", buf);
|
||||
printf("\tGame code: %c%c%c%c\n", header.gameCode[3], header.gameCode[2], header.gameCode[1], header.gameCode[0]);
|
||||
printf("\tGame code: %c%c%c%c\n", header.gameCode[0], header.gameCode[1], header.gameCode[2], header.gameCode[3]);
|
||||
printf("\tMaker code: %c%c (0x%04X) - %s\n", header.makerCode & 0xFF, header.makerCode >> 8, header.makerCode, getDeveloperNameByID(header.makerCode).c_str());
|
||||
printf("\tDevice capacity: %dMb (real size %dMb)\n", ((128 * 1024) << header.cardSize) / (1024 * 1024), romsize / (1024 * 1024));
|
||||
printf("\tCRC16: %04Xh\n", header.CRC16);
|
||||
|
|
Loading…
Reference in New Issue