mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-09-04 19:55:27 +02:00
Windows: Avoid segfault if memory except on boot.
This commit is contained in:
+2
-1
@@ -122,7 +122,8 @@ void UpdateUIState(GlobalUIState newState) {
|
||||
// Never leave the EXIT state.
|
||||
if (globalUIState != newState && globalUIState != UISTATE_EXIT) {
|
||||
globalUIState = newState;
|
||||
host->UpdateDisassembly();
|
||||
if (host)
|
||||
host->UpdateDisassembly();
|
||||
const char *state = nullptr;
|
||||
switch (globalUIState) {
|
||||
case UISTATE_EXIT: state = "exit"; break;
|
||||
|
||||
Reference in New Issue
Block a user