aboutsummaryrefslogtreecommitdiff
path: root/source/nds/gcheat.c
diff options
context:
space:
mode:
authorNebuleon Fumika2012-12-24 01:15:41 -0500
committerNebuleon Fumika2012-12-24 01:15:41 -0500
commitf843d68bb65f8a532b365efc5cbdf5be65c5f517 (patch)
tree1dfd888821a05870fd30ebb733e07cc627a8ebaa /source/nds/gcheat.c
parentbb39cc82364ea00324a054ba0970bdc07ecfdeec (diff)
downloadsnes9x2005-f843d68bb65f8a532b365efc5cbdf5be65c5f517.tar.gz
snes9x2005-f843d68bb65f8a532b365efc5cbdf5be65c5f517.tar.bz2
snes9x2005-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.c6
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);
}
}