mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-06-28 01:49:42 -06:00
blarg
This commit is contained in:
@ -224,9 +224,16 @@ void LoadCheats()
|
||||
}
|
||||
|
||||
char filename[1024];
|
||||
strncpy(filename, ROMPath[ROMSlot_NDS], 1023);
|
||||
filename[1023] = '\0';
|
||||
strncpy(filename + strlen(ROMPath[ROMSlot_NDS]) - 3, "mch", 3);
|
||||
if (ROMPath[ROMSlot_NDS][0] != '\0')
|
||||
{
|
||||
strncpy(filename, ROMPath[ROMSlot_NDS], 1023);
|
||||
filename[1023] = '\0';
|
||||
strncpy(filename + strlen(ROMPath[ROMSlot_NDS]) - 3, "mch", 3);
|
||||
}
|
||||
else
|
||||
{
|
||||
strncpy(filename, "firmware.mch", 1023);
|
||||
}
|
||||
|
||||
// TODO: check for error (malformed cheat file, ...)
|
||||
CheatFile = new ARCodeFile(filename);
|
||||
|
Reference in New Issue
Block a user