diff --git a/desmume/src/NDSSystem.h b/desmume/src/NDSSystem.h index 89b22f6c..e1b7964b 100644 --- a/desmume/src/NDSSystem.h +++ b/desmume/src/NDSSystem.h @@ -157,7 +157,7 @@ enum ENSATA_HANDSHAKE ENSATA_HANDSHAKE_complete = 4, }; -enum NDS_CONSOLE_TYPE : u8 +enum NDS_CONSOLE_TYPE { NDS_CONSOLE_TYPE_FAT, NDS_CONSOLE_TYPE_LITE, @@ -208,7 +208,7 @@ struct NDSSystem s32 cpuloopIterationCount; //counts the number of times during a frame that a reschedule happened //console type must be copied in when the system boots. it can't be changed on the fly. - NDS_CONSOLE_TYPE ConsoleType; + int ConsoleType; bool Is_DSI() { return ConsoleType == NDS_CONSOLE_TYPE_DSI; } bool Is_DebugConsole() { return _DebugConsole!=0; } BOOL _DebugConsole; diff --git a/desmume/src/saves.cpp b/desmume/src/saves.cpp index a1c47dac..1684c68f 100644 --- a/desmume/src/saves.cpp +++ b/desmume/src/saves.cpp @@ -170,7 +170,7 @@ SFORMAT SF_NDS[]={ { "_TPB", 4, 1, &nds.isTouch}, { "_DBG", 4, 1, &nds._DebugConsole}, { "_ENS", 4, 1, &nds.ensataEmulation}, - { "_TYP", 1, 1, &nds.ConsoleType}, + { "_TYP", 4, 1, &nds.ConsoleType}, { "_ENH", 4, 1, &nds.ensataHandshake}, { "_ENI", 4, 1, &nds.ensataIpcSyncCounter}, { "_SLP", 4, 1, &nds.sleeping},