Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Clear patches on shutdown.
Fixes issue 6434.
  • Loading branch information
RachelBryk committed Jul 25, 2013
1 parent 4deea2b commit bff2bc1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Source/Core/Core/Src/Core.cpp
Expand Up @@ -56,6 +56,7 @@

#include "State.h"
#include "Movie.h"
#include "PatchEngine.h"

// TODO: ugly, remove
bool g_aspect_wide;
Expand Down Expand Up @@ -278,6 +279,8 @@ void Stop() // - Hammertime!

INFO_LOG(CONSOLE, "Stop [Main Thread]\t\t---- Shutdown complete ----");
Movie::Shutdown();
PatchEngine::Shutdown();

g_bStopping = false;
}

Expand Down
5 changes: 5 additions & 0 deletions Source/Core/Core/Src/PatchEngine.cpp
Expand Up @@ -211,4 +211,9 @@ void ApplyARPatches()
ActionReplay::RunAllActive();
}

void Shutdown()
{
onFrame.clear();
}

} // namespace
1 change: 1 addition & 0 deletions Source/Core/Core/Src/PatchEngine.h
Expand Up @@ -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)
{
Expand Down

0 comments on commit bff2bc1

Please sign in to comment.