UI: Use a UIState for exceptions.

This makes it so we can enable Stop/Reset/etc. during them in the menus.
This commit is contained in:
Unknown W. Brackets committed 2021-08-08 23:40:41 -07:00
1 parent 32c7ff8436
commit 75eeb55617
5 files changed
+11 -7

No files matched your search

+2 -2
View File
@@ -952,8 +952,8 @@ void EmuScreen::update() {
PSP_CoreParameter().pixelHeight = pixel_yres * bounds.h / dp_yres;
#endif
if (!invalid_ && coreState != CORE_RUNTIME_ERROR) {
UpdateUIState(UISTATE_INGAME);
if (!invalid_) {
UpdateUIState(coreState != CORE_RUNTIME_ERROR ? UISTATE_INGAME : UISTATE_EXCEPTION);
}
if (errorMessage_.size()) {