Skip to content

Commit

Permalink
Address screensaver video/audio not stopping on game launch
Browse files Browse the repository at this point in the history
Recent reports of specific configurations or versions changing some of the event handling order, resulting in the screensaver video/audio not stopping when a game is launched from it.

Can't replicate on my end, but these changes should be harmless for the current setup, and should help with that scenario. To be fair, it should have been there from the get go - it's just pure luck that things worked until now, as the screensaver was being halted before this code would run.
  • Loading branch information
pjft authored Jul 21, 2023
1 parent 08d74d3 commit 30cbdeb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions es-app/src/SystemScreenSaver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -511,6 +511,10 @@ void SystemScreenSaver::launchGame()
{
if (mCurrentGame != NULL)
{
//Stop screensaver
mStopBackgroundAudio = true;
stopScreenSaver();

// launching Game
ViewController::get()->goToGameList(mCurrentGame->getSystem());
IGameListView* view = ViewController::get()->getGameListView(mCurrentGame->getSystem()).get();
Expand Down

0 comments on commit 30cbdeb

Please sign in to comment.