Fix some spurious resets on stopping a game.

This commit is contained in:
Unknown W. Brackets committed 2014-05-11 10:58:33 -07:00
1 parent 233f13bb8e
commit bfa02f8fa1
1 file changed
+2
+2
View File
@@ -173,9 +173,11 @@ void EmuScreen::sendMessage(const char *message, const char *value) {
// We will push MainScreen in update().
PSP_Shutdown();
booted_ = false;
invalid_ = true;
} else if (!strcmp(message, "reset")) {
PSP_Shutdown();
booted_ = false;
invalid_ = true;
std::string resetError;
if (!PSP_InitStart(PSP_CoreParameter(), &resetError)) {
ELOG("Error resetting: %s", resetError.c_str());