From 1d302f9cab5096f3a984d0f708e82b628e527963 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sun, 29 Dec 2013 18:09:28 -0800 Subject: [PATCH] Keep track of whether PSP_Init() was called. This way settings are properly enabled/disabled in the menu. --- Core/System.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Core/System.cpp b/Core/System.cpp index 71244d9232..f73504f5b2 100644 --- a/Core/System.cpp +++ b/Core/System.cpp @@ -300,6 +300,8 @@ void System_Wake() { } } +static bool pspIsInited = false; + bool PSP_Init(const CoreParameter &coreParam, std::string *error_string) { INFO_LOG(BOOT, "PPSSPP %s", PPSSPP_GIT_VERSION); @@ -325,11 +327,12 @@ bool PSP_Init(const CoreParameter &coreParam, std::string *error_string) { *error_string = "Unable to initialize rendering engine."; } } + pspIsInited = success; return success; } bool PSP_IsInited() { - return currentMIPS != 0; + return pspIsInited; } void PSP_Shutdown() { @@ -353,6 +356,7 @@ void PSP_Shutdown() { GPU_Shutdown(); host->SetWindowTitle(0); currentMIPS = 0; + pspIsInited = false; } void PSP_RunLoopUntil(u64 globalticks) {