mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-04-10 19:15:13 +00:00
The launch sound is now always stopped when returning to ES-DE after a game launch
This commit is contained in:
parent
7f1f7b7663
commit
8db3b59258
|
|
@ -1061,6 +1061,7 @@ void ViewController::launch(FileData* game)
|
||||||
// During this time period, all user input is blocked.
|
// During this time period, all user input is blocked.
|
||||||
setAnimation(new LambdaAnimation([](float t) {}, duration), 0, [this, game] {
|
setAnimation(new LambdaAnimation([](float t) {}, duration), 0, [this, game] {
|
||||||
game->launchGame();
|
game->launchGame();
|
||||||
|
AudioManager::getInstance().stop();
|
||||||
// If the launch screen is disabled then this will do nothing.
|
// If the launch screen is disabled then this will do nothing.
|
||||||
mWindow->closeLaunchScreen();
|
mWindow->closeLaunchScreen();
|
||||||
onFileChanged(game, true);
|
onFileChanged(game, true);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue