patches: reset also patches on VM restart

This should fully fix #851
This commit is contained in:
Avi Halachmi (:avih) 2016-07-27 13:07:09 +03:00
parent 56adb85a87
commit 67aee8a19c
3 changed files with 8 additions and 0 deletions

View File

@ -176,6 +176,12 @@ void inifile_process(wxTextFile &f1 )
}
}
void ResetPatchesCount()
{
patchnumber = 0;
}
void ResetCheatsCount()
{
cheatnumber = 0;

View File

@ -57,6 +57,7 @@ namespace PatchFunc
PATCHTABLEFUNC cheat;
}
extern void ResetPatchesCount();
extern void ResetCheatsCount();
extern int LoadCheats(wxString name, const wxDirName& folderName, const wxString& friendlyName);
extern int LoadCheatsFromZip(wxString gameCRC, const wxString& cheatsArchiveFilename);

View File

@ -198,6 +198,7 @@ void SysCoreThread::_reset_stuff_as_needed()
m_resetVirtualMachine = false;
m_resetVsyncTimers = false;
ResetPatchesCount();
ResetCheatsCount();
}