Process savestates during single stepping.

This way we can handle them on the same thread, without weird delays.
This commit is contained in:
Unknown W. Brackets committed 2013-09-14 18:43:23 -07:00
1 parent 2d084ec747
commit 2ac5bcff1f
4 files changed
+34 -22

No files matched your search

+3 -8
View File
@@ -83,15 +83,10 @@ namespace SaveState
std::lock_guard<std::recursive_mutex> guard(mutex);
pending.push_back(op);
// Don't actually run it until next CoreTiming::Advance().
// Don't actually run it until next frame.
// It's possible there might be a duplicate but it won't hurt us.
if (Core_IsInactive() && __KernelIsRunning()) {
// Warning: this may run on a different thread.
needsProcess = true;
Process();
} else {
needsProcess = true;
}
needsProcess = true;
Core_UpdateSingleStep();
}
void Load(const std::string &filename, Callback callback, void *cbUserData)