The launch sound is no longer played if the launch screen is set as disabled when built with the DEINIT_ON_LAUNCH option

This commit is contained in:
Leon Styhre 2025-03-16 21:41:29 +01:00
parent 8db3b59258
commit 6f0b77b88f

View file

@ -1049,7 +1049,7 @@ void ViewController::launch(FileData* game)
if (durationString != "disabled" && durationString != "popup") if (durationString != "disabled" && durationString != "popup")
mWindow->displayLaunchScreen(game->getSourceFileData()); mWindow->displayLaunchScreen(game->getSourceFileData());
#if defined(__ANDROID__) #if defined(__ANDROID__) || defined(DEINIT_ON_LAUNCH)
if (durationString != "disabled") if (durationString != "disabled")
NavigationSounds::getInstance().playThemeNavigationSound(LAUNCHSOUND); NavigationSounds::getInstance().playThemeNavigationSound(LAUNCHSOUND);
#else #else