mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-26 15:53:35 +01:00
Improve reliability of "menu background music". Fix issue with mixed navigation mentioned in #8565
This commit is contained in:
1 parent
199ce4ef9e
commit
e1ebc12d7f
3 files changed
+7
-5
No files matched your search
+4
-2
@@ -1046,8 +1046,10 @@ UI::EventReturn MainScreen::OnGameHighlight(UI::EventParams &e) {
|
||||
}
|
||||
}
|
||||
|
||||
if ((!highlightedGamePath_.empty() || e.a == FF_LOSTFOCUS) && !lockBackgroundAudio_)
|
||||
if ((!highlightedGamePath_.empty() || e.a == FF_LOSTFOCUS) && !lockBackgroundAudio_) {
|
||||
SetBackgroundAudioGame(highlightedGamePath_);
|
||||
}
|
||||
|
||||
lockBackgroundAudio_ = false;
|
||||
return UI::EVENT_DONE;
|
||||
}
|
||||
@@ -1135,7 +1137,7 @@ void MainScreen::dialogFinished(const Screen *dialog, DialogResult result) {
|
||||
RecreateViews();
|
||||
}
|
||||
if (dialog->tag() == "game") {
|
||||
if (!restoreFocusGamePath_.empty()) {
|
||||
if (!restoreFocusGamePath_.empty() && UI::IsFocusMovementEnabled()) {
|
||||
// Prevent the background from fading, since we just were displaying it.
|
||||
highlightedGamePath_ = restoreFocusGamePath_;
|
||||
highlightProgress_ = 1.0f;
|
||||
|
||||
Reference in new issue
Block a user