Clear patches on shutdown.

Fixes issue 6434.
This commit is contained in:
Rachel Bryk 2013-07-25 16:43:00 -04:00
parent 4deea2bcae
commit bff2bc1288
3 changed files with 9 additions and 0 deletions

View File

@ -56,6 +56,7 @@
#include "State.h"
#include "Movie.h"
#include "PatchEngine.h"
// TODO: ugly, remove
bool g_aspect_wide;
@ -278,6 +279,8 @@ void Stop() // - Hammertime!
INFO_LOG(CONSOLE, "Stop [Main Thread]\t\t---- Shutdown complete ----");
Movie::Shutdown();
PatchEngine::Shutdown();
g_bStopping = false;
}

View File

@ -211,4 +211,9 @@ void ApplyARPatches()
ActionReplay::RunAllActive();
}
void Shutdown()
{
onFrame.clear();
}
} // namespace

View File

@ -40,6 +40,7 @@ void LoadPatchSection(const char *section, std::vector<Patch> &patches, IniFile
void LoadPatches(const char *gameID);
void ApplyFramePatches();
void ApplyARPatches();
void Shutdown();
inline int GetPatchTypeCharLength(PatchType type)
{