mirror of https://github.com/snes9xgit/snes9x.git
win32: move S9xCheatsEnable to PostRomInit
This commit is contained in:
parent
9c056c4d40
commit
074965bd1c
|
@ -4060,8 +4060,6 @@ static bool LoadROMPlain(const TCHAR *filename)
|
|||
if (Memory.LoadROM (_tToChar(filename)))
|
||||
{
|
||||
S9xStartCheatSearch (&Cheat);
|
||||
if (Settings.ApplyCheats)
|
||||
S9xCheatsEnable();
|
||||
ReInitSound();
|
||||
ResetFrameTimer();
|
||||
return (TRUE);
|
||||
|
@ -4075,8 +4073,6 @@ static bool LoadROMMulti(const TCHAR *filename, const TCHAR *filename2)
|
|||
if (Memory.LoadMultiCart(_tToChar(filename), _tToChar(filename2)))
|
||||
{
|
||||
S9xStartCheatSearch(&Cheat);
|
||||
if (Settings.ApplyCheats)
|
||||
S9xCheatsEnable();
|
||||
ReInitSound();
|
||||
ResetFrameTimer();
|
||||
return (TRUE);
|
||||
|
@ -10670,6 +10666,7 @@ void S9xPostRomInit()
|
|||
// a lingering cheat they don't realize is on
|
||||
if (Settings.ApplyCheats)
|
||||
{
|
||||
S9xCheatsEnable();
|
||||
extern struct SCheatData Cheat;
|
||||
for (uint32 i = 0; i < Cheat.g.size(); i++)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue