diff options
author | Nebuleon Fumika | 2012-12-24 01:15:41 -0500 |
---|---|---|
committer | Nebuleon Fumika | 2012-12-24 01:15:41 -0500 |
commit | f843d68bb65f8a532b365efc5cbdf5be65c5f517 (patch) | |
tree | 1dfd888821a05870fd30ebb733e07cc627a8ebaa /source/nds/gcheat.c | |
parent | bb39cc82364ea00324a054ba0970bdc07ecfdeec (diff) | |
download | snesemu-f843d68bb65f8a532b365efc5cbdf5be65c5f517.tar.gz snesemu-f843d68bb65f8a532b365efc5cbdf5be65c5f517.tar.bz2 snesemu-f843d68bb65f8a532b365efc5cbdf5be65c5f517.zip |
Make the GUI accept and save Snes9x's cheat file format. Improve support for saving the values present in ROM/RAM before a cheat is applied.
Beautify the cheat selection menu, making it more tabular.
Diffstat (limited to 'source/nds/gcheat.c')
-rw-r--r-- | source/nds/gcheat.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/nds/gcheat.c b/source/nds/gcheat.c index e3d0e8d..d0ada43 100644 --- a/source/nds/gcheat.c +++ b/source/nds/gcheat.c @@ -103,17 +103,17 @@ int NDSSFCLoadCheatFile(const char* filename) ptr++; // Go past the + , or " code[i] = '\0'; if (!S9xGameGenieToRaw (code, &address, &byte)) { - S9xAddCheat (FALSE, TRUE, address, byte); + S9xAddCheat (FALSE, FALSE, address, byte); strncpy (Cheat.c[Cheat.num_cheats - 1].name, description, MAX_SFCCHEAT_NAME); } else if (!S9xProActionReplayToRaw (code, &address, &byte)) { - S9xAddCheat (FALSE, TRUE, address, byte); + S9xAddCheat (FALSE, FALSE, address, byte); strncpy (Cheat.c[Cheat.num_cheats - 1].name, description, MAX_SFCCHEAT_NAME); } else if (!S9xGoldFingerToRaw (code, &address, &sram, &num_bytes, bytes)) { for (c = 0; c < num_bytes; c++) { - S9xAddCheat (FALSE, TRUE, address + c, bytes[c]); + S9xAddCheat (FALSE, FALSE, address + c, bytes[c]); strncpy (Cheat.c[Cheat.num_cheats - 1].name, description, MAX_SFCCHEAT_NAME); } } |