UI: Start normally when --start-screen names an unknown screen

It left no screen at all, just a log full of "No current screen!".

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Henrik RydgårdandClaude Opus 5.5 committed 2026-10-25 13:44:44 +01:00
1 parent d887057b83
commit 4f322eed61
1 file changed
+4 -2
+4 -2
View File
@@ -891,12 +891,14 @@ void NativeInit(int argc, const char *argv[], const CommandLineOptions &cmdLineO
if (equals(cmdLineOptions.startScreen.value(), "touchscreentest")) {
g_screenManager->switchScreen(new MainScreen());
g_screenManager->push(new TouchTestScreen(Path()));
}
if (equals(cmdLineOptions.startScreen.value(), "gamesettings")) {
} else if (equals(cmdLineOptions.startScreen.value(), "gamesettings")) {
g_screenManager->switchScreen(new LogoScreen(AfterLogoScreen::TO_GAME_SETTINGS));
} else if (equals(cmdLineOptions.startScreen.value(), "developertools")) {
g_screenManager->switchScreen(new MainScreen());
g_screenManager->push(new DeveloperToolsScreen(Path()));
} else {
WARN_LOG(Log::System, "Unknown start screen '%s'", cmdLineOptions.startScreen.value().c_str());
g_screenManager->switchScreen(new LogoScreen(AfterLogoScreen::DEFAULT));
}
} else if (skipLogo && !boot_filename.empty()) {
INFO_LOG(Log::System, "Launching EmuScreen with boot filename '%s'", boot_filename.c_str());