mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-27 12:18:35 +01:00
Process savestates during single stepping.
This way we can handle them on the same thread, without weird delays.
This commit is contained in:
1 parent
2d084ec747
commit
2ac5bcff1f
4 files changed
+34
-22
No files matched your search
+3
-8
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user