PatchEngine: Clear active codes on shutdown
The active codes normally get cleared when a game boots, because LoadPatches gets called, replacing the codes from the previous game. However, there were cases where LoadPatches doesn't get called, and then codes from the previous game would be used for the current game. This commit clears the codes on shutdown so that it doesn't matter whether the boot process loads LoadPatches.
This commit is contained in:
parent
f8bf839e36
commit
b210769ea0
|
@ -224,6 +224,9 @@ void ApplyFramePatches()
|
|||
void Shutdown()
|
||||
{
|
||||
onFrame.clear();
|
||||
speedHacks.clear();
|
||||
ActionReplay::ApplyCodes({});
|
||||
Gecko::SetActiveCodes({});
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
|
Loading…
Reference in New Issue