SaveState: Make event restoring more obvious.

We still must restore all events, but everything can be taken care of
during the save state load.
This commit is contained in:
Unknown W. Brackets committed 2020-12-28 13:29:19 -08:00
1 parent 52c6169a59
commit 06f8ab5a49
10 files changed
+60 -78

No files matched your search

+2
View File
@@ -301,6 +301,8 @@ void __CheatShutdown() {
void __CheatDoState(PointerWrap &p) {
auto s = p.Section("CwCheat", 0, 2);
if (!s) {
CheatEvent = -1;
CoreTiming::RestoreRegisterEvent(CheatEvent, "CheatEvent", &hleCheat);
return;
}