patches: reset also patches on VM restart

This should fully fix #851
This commit is contained in:
Avi Halachmi (:avih) committed 2016-07-27 14:21:37 +03:00
1 parent 56adb85a87
commit 67aee8a19c
3 files changed
+8

No files matched your search

+6
View File
@@ -176,6 +176,12 @@ void inifile_process(wxTextFile &f1 )
}
}
void ResetPatchesCount()
{
patchnumber = 0;
}
void ResetCheatsCount()
{
cheatnumber = 0;
+1
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);
+1
View File
@@ -198,6 +198,7 @@ void SysCoreThread::_reset_stuff_as_needed()
m_resetVirtualMachine = false;
m_resetVsyncTimers = false;
ResetPatchesCount();
ResetCheatsCount();
}