mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-08 13:43:33 +01:00
Clear patches on shutdown.
Fixes issue 6434.
This commit is contained in:
parent
4deea2bcae
commit
bff2bc1288
@ -56,6 +56,7 @@
|
|||||||
|
|
||||||
#include "State.h"
|
#include "State.h"
|
||||||
#include "Movie.h"
|
#include "Movie.h"
|
||||||
|
#include "PatchEngine.h"
|
||||||
|
|
||||||
// TODO: ugly, remove
|
// TODO: ugly, remove
|
||||||
bool g_aspect_wide;
|
bool g_aspect_wide;
|
||||||
@ -278,6 +279,8 @@ void Stop() // - Hammertime!
|
|||||||
|
|
||||||
INFO_LOG(CONSOLE, "Stop [Main Thread]\t\t---- Shutdown complete ----");
|
INFO_LOG(CONSOLE, "Stop [Main Thread]\t\t---- Shutdown complete ----");
|
||||||
Movie::Shutdown();
|
Movie::Shutdown();
|
||||||
|
PatchEngine::Shutdown();
|
||||||
|
|
||||||
g_bStopping = false;
|
g_bStopping = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -211,4 +211,9 @@ void ApplyARPatches()
|
|||||||
ActionReplay::RunAllActive();
|
ActionReplay::RunAllActive();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Shutdown()
|
||||||
|
{
|
||||||
|
onFrame.clear();
|
||||||
|
}
|
||||||
|
|
||||||
} // namespace
|
} // namespace
|
||||||
|
@ -40,6 +40,7 @@ void LoadPatchSection(const char *section, std::vector<Patch> &patches, IniFile
|
|||||||
void LoadPatches(const char *gameID);
|
void LoadPatches(const char *gameID);
|
||||||
void ApplyFramePatches();
|
void ApplyFramePatches();
|
||||||
void ApplyARPatches();
|
void ApplyARPatches();
|
||||||
|
void Shutdown();
|
||||||
|
|
||||||
inline int GetPatchTypeCharLength(PatchType type)
|
inline int GetPatchTypeCharLength(PatchType type)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user