diff --git a/pcsx2/Patch.cpp b/pcsx2/Patch.cpp index c161cd6879..9803dc86cf 100644 --- a/pcsx2/Patch.cpp +++ b/pcsx2/Patch.cpp @@ -176,6 +176,12 @@ void inifile_process(wxTextFile &f1 ) } } +void ResetPatchesCount() +{ + patchnumber = 0; +} + + void ResetCheatsCount() { cheatnumber = 0; diff --git a/pcsx2/Patch.h b/pcsx2/Patch.h index 246350a4fb..a426fcd794 100644 --- a/pcsx2/Patch.h +++ b/pcsx2/Patch.h @@ -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); diff --git a/pcsx2/System/SysCoreThread.cpp b/pcsx2/System/SysCoreThread.cpp index aab8c9161f..0b93e22ddc 100644 --- a/pcsx2/System/SysCoreThread.cpp +++ b/pcsx2/System/SysCoreThread.cpp @@ -198,6 +198,7 @@ void SysCoreThread::_reset_stuff_as_needed() m_resetVirtualMachine = false; m_resetVsyncTimers = false; + ResetPatchesCount(); ResetCheatsCount(); }