From c718d2e630224d817fcf2f91ebf5ad9e91591773 Mon Sep 17 00:00:00 2001 From: skidau Date: Thu, 9 Dec 2010 12:04:03 +0000 Subject: [PATCH] Fixed an issue where the emulator would remain paused when attempting to load a non-existent save-state. Fixes issue 3665. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6543 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/Core/Src/State.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Source/Core/Core/Src/State.cpp b/Source/Core/Core/Src/State.cpp index 7ca429dd3a..fd07beb36c 100644 --- a/Source/Core/Core/Src/State.cpp +++ b/Source/Core/Core/Src/State.cpp @@ -295,6 +295,8 @@ void LoadStateCallback(u64 userdata, int cyclesLate) if (!f) { Core::DisplayMessage("State not found", 2000); + // Resume the clock + PowerPC::Start(); return; } @@ -312,6 +314,8 @@ void LoadStateCallback(u64 userdata, int cyclesLate) gameID), 2000); fclose(f); + // Resume the clock + PowerPC::Start(); return; } @@ -326,6 +330,8 @@ void LoadStateCallback(u64 userdata, int cyclesLate) if (!buffer) { PanicAlert("Error allocating buffer"); + // Resume the clock + PowerPC::Start(); return; } while (true) @@ -345,6 +351,8 @@ void LoadStateCallback(u64 userdata, int cyclesLate) "Try loading the state again", res, i, new_len); fclose(f); delete[] buffer; + // Resume the clock + PowerPC::Start(); return; }