mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-26 15:53:35 +01:00
UI: Avoid navigation with an active dialog.
Cleaning up next.
This commit is contained in:
1 parent
68a5861f60
commit
e945ad6ac1
5 files changed
+23
-29
No files matched your search
+2
-10
@@ -935,18 +935,10 @@ void MainScreen::sendMessage(const char *message, const char *value) {
|
||||
// Always call the base class method first to handle the most common messages.
|
||||
UIScreenWithBackground::sendMessage(message, value);
|
||||
|
||||
if (!strcmp(message, "boot")) {
|
||||
if (!strcmp(message, "boot") && screenManager()->topScreen() == this) {
|
||||
screenManager()->switchScreen(new EmuScreen(value));
|
||||
}
|
||||
if (!strcmp(message, "control mapping")) {
|
||||
UpdateUIState(UISTATE_MENU);
|
||||
screenManager()->push(new ControlMappingScreen());
|
||||
}
|
||||
if (!strcmp(message, "display layout editor")) {
|
||||
UpdateUIState(UISTATE_MENU);
|
||||
screenManager()->push(new DisplayLayoutScreen());
|
||||
}
|
||||
if (!strcmp(message, "settings")) {
|
||||
if (!strcmp(message, "settings") && screenManager()->topScreen() == this) {
|
||||
UpdateUIState(UISTATE_MENU);
|
||||
screenManager()->push(new GameSettingsScreen(""));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user