mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-26 15:53:35 +01:00
Many reported ANRs were from homebrew installs. Make sure installs run on the background thread.
This commit is contained in:
1 parent
79c0d895ce
commit
d0613511b2
3 files changed
+25
-15
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user