mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
UI: Consistently set bgaudio on game start.
Before we were doing it only in certain cases. This now means that background audio will always play on the pause screen. Fixes #8944.
This commit is contained in:
parent
f39c603acb
commit
995e056598
2 changed files with 3 additions and 1 deletions
|
@ -52,6 +52,7 @@
|
|||
#include "Core/HLE/__sceAudio.h"
|
||||
|
||||
#include "UI/ui_atlas.h"
|
||||
#include "UI/BackgroundAudio.h"
|
||||
#include "UI/OnScreenDisplay.h"
|
||||
#include "UI/GamepadEmu.h"
|
||||
#include "UI/PauseScreen.h"
|
||||
|
@ -109,6 +110,8 @@ void EmuScreen::bootGame(const std::string &filename) {
|
|||
return;
|
||||
}
|
||||
|
||||
SetBackgroundAudioGame(filename);
|
||||
|
||||
//pre-emptive loading of game specific config if possible, to get all the settings
|
||||
GameInfo *info = g_gameInfoCache->GetInfo(NULL, filename, 0);
|
||||
if (info && !info->id.empty()) {
|
||||
|
|
|
@ -928,7 +928,6 @@ void MainScreen::sendMessage(const char *message, const char *value) {
|
|||
|
||||
if (!strcmp(message, "boot")) {
|
||||
screenManager()->switchScreen(new EmuScreen(value));
|
||||
SetBackgroundAudioGame(value);
|
||||
}
|
||||
if (!strcmp(message, "control mapping")) {
|
||||
UpdateUIState(UISTATE_MENU);
|
||||
|
|
Loading…
Add table
Reference in a new issue