mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-04 03:33:44 +01:00
Allow double PSP_Shutdown() without any error.
We call it in a few places to "ensure" shutdown, e.g. before resetting, but there are cases of double-shutdown. Let's allow it since there's there shouldn't be any multithreading here.
This commit is contained in:
1 parent
26b4335637
commit
1d8375924a
1 file changed
+5
@@ -375,6 +375,11 @@ bool PSP_IsInited() {
|
||||
}
|
||||
|
||||
void PSP_Shutdown() {
|
||||
// Do nothing if we never inited.
|
||||
if (!pspIsInited && !pspIsIniting) {
|
||||
return;
|
||||
}
|
||||
|
||||
#ifndef MOBILE_DEVICE
|
||||
if (g_Config.bFuncHashMap) {
|
||||
MIPSAnalyst::StoreHashMap();
|
||||
|
||||
Reference in new issue
Block a user