Many reported ANRs were from homebrew installs. Make sure installs run on the background thread.

This commit is contained in:
Henrik Rydgård committed 2017-05-18 14:21:13 +02:00
1 parent 79c0d895ce
commit d0613511b2
3 files changed
+25 -15

No files matched your search

+4
View File
@@ -34,6 +34,7 @@
#include "Core/System.h"
#include "Core/Host.h"
#include "Core/Reporting.h"
#include "Core/Util/GameManager.h"
#include "UI/BackgroundAudio.h"
#include "UI/EmuScreen.h"
@@ -1047,6 +1048,9 @@ UI::EventReturn MainScreen::OnGameSelected(UI::EventParams &e) {
return UI::EVENT_DONE;
}
if (g_GameManager.GetState() == GameManagerState::INSTALLING)
return UI::EVENT_DONE;
// Restore focus if it was highlighted (e.g. by gamepad.)
restoreFocusGamePath_ = highlightedGamePath_;
SetBackgroundAudioGame(path);