(Android) The launch sound is no longer played if the launch screen is set as disabled

This commit is contained in:
Leon Styhre 2025-03-16 21:34:28 +01:00
parent bdcdbeca86
commit 7f1f7b7663

View file

@ -1049,7 +1049,12 @@ void ViewController::launch(FileData* game)
if (durationString != "disabled" && durationString != "popup")
mWindow->displayLaunchScreen(game->getSourceFileData());
#if defined(__ANDROID__)
if (durationString != "disabled")
NavigationSounds::getInstance().playThemeNavigationSound(LAUNCHSOUND);
#else
NavigationSounds::getInstance().playThemeNavigationSound(LAUNCHSOUND);
#endif
// This is just a dummy animation in order for the launch screen or notification popup
// to be displayed briefly, and for the navigation sound playing to be able to complete.