mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-03-06 21:27:57 +00:00
Keep track of whether PSP_Init() was called.
This way settings are properly enabled/disabled in the menu.
This commit is contained in:
parent
ca78f49e5b
commit
1d302f9cab
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user