mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-27 04:08:37 +01:00
Add a command line option to load a state.
For debugging.
This commit is contained in:
1 parent
f9133c1a56
commit
14ef840dd3
2 files changed
+15
-1
No files matched your search
+7
-1
@@ -87,7 +87,7 @@ namespace SaveState
|
||||
|
||||
// Don't actually run it until next CoreTiming::Advance().
|
||||
// It's possible there might be a duplicate but it won't hurt us.
|
||||
if (Core_IsStepping())
|
||||
if (Core_IsStepping() && __KernelIsRunning())
|
||||
{
|
||||
// Warning: this may run on a different thread.
|
||||
Process(0, 0);
|
||||
@@ -122,6 +122,12 @@ namespace SaveState
|
||||
|
||||
void Process(u64 userdata, int cyclesLate)
|
||||
{
|
||||
if (!__KernelIsRunning())
|
||||
{
|
||||
ERROR_LOG(COMMON, "Savestate failure: Unable to load without kernel, this should never happen.");
|
||||
return;
|
||||
}
|
||||
|
||||
std::vector<Operation> operations = Flush();
|
||||
SaveStart state;
|
||||
|
||||
|
||||
Reference in new issue
Block a user