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:
Unknown W. Brackets committed 2014-02-14 21:53:59 -08:00
1 parent 26b4335637
commit 1d8375924a
1 file changed
+5
+5
View File
@@ -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();