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
This commit is contained in:
skidau 2010-12-09 12:04:03 +00:00
parent f353f80302
commit c718d2e630
1 changed files with 8 additions and 0 deletions

View File

@ -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;
}