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:
Unknown W. Brackets 2016-09-04 08:42:20 -07:00
parent f39c603acb
commit 995e056598
2 changed files with 3 additions and 1 deletions

View File

@ -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()) {

View File

@ -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);