diff options
author | Nebuleon Fumika | 2012-12-24 01:25:08 -0500 |
---|---|---|
committer | Nebuleon Fumika | 2012-12-24 01:25:08 -0500 |
commit | b90664ac4425ab90aab6fe6e8d0b0af1573a72e4 (patch) | |
tree | 401f4a352fe4568334394bc4661ac3873222f0c4 /source/nds/entry.cpp | |
parent | 7a6ffe8a1e241f4308be9867990563a06a335b86 (diff) | |
parent | f843d68bb65f8a532b365efc5cbdf5be65c5f517 (diff) | |
download | snes9x2005-b90664ac4425ab90aab6fe6e8d0b0af1573a72e4.tar.gz snes9x2005-b90664ac4425ab90aab6fe6e8d0b0af1573a72e4.tar.bz2 snes9x2005-b90664ac4425ab90aab6fe6e8d0b0af1573a72e4.zip |
Merge branch 'cheats'
Diffstat (limited to 'source/nds/entry.cpp')
-rw-r--r-- | source/nds/entry.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/source/nds/entry.cpp b/source/nds/entry.cpp index 467461b..ea5f6ce 100644 --- a/source/nds/entry.cpp +++ b/source/nds/entry.cpp @@ -97,7 +97,8 @@ void S9xExit () S9xSetSoundMute (TRUE); S9xDeinitDisplay (); Memory.SaveSRAM (S9xGetFilename (".srm")); - S9xSaveCheatFile (S9xGetFilename (".cht")); + // S9xSaveCheatFile (S9xGetFilename (".chb")); // cheat binary file + // Do this when loading a cheat file! Memory.Deinit (); S9xDeinitAPU (); @@ -258,7 +259,6 @@ const char *S9xGetSnapshotDirectory () return ((const char*)DEFAULT_RTS_DIR); } - const char *S9xGetFilename (const char *ex) { static char filename [PATH_MAX + 1]; @@ -391,7 +391,7 @@ void init_sfc_setting(void) Settings.ServerName [0] = 0; Settings.Port = NP_DEFAULT_PORT; #endif - Settings.ApplyCheats = FALSE; + Settings.ApplyCheats = TRUE; Settings.TurboMode = FALSE; Settings.TurboSkipFrames = 40; Settings.StretchScreenshots = 1; @@ -457,8 +457,7 @@ int load_gamepak(char* file) Memory.LoadSRAM (S9xGetFilename (".srm")); // mdelay(50); // Delete this delay - //S9xLoadCheatFile (S9xGetFilename (".cht")); - S9xCheat_Disable(); + S9xLoadCheatFile (S9xGetFilename (".chb")); // cheat binary file, as opposed to text #ifdef _NETPLAY_SUPPORT if (strlen (Settings.ServerName) == 0) |