Play the game's SND0.AT3 when a game is selected in the menu and on the "game screen".

This commit is contained in:
Henrik Rydgard 2014-06-22 17:02:04 +02:00
parent 12cef8fa80
commit cefc0bc96f
16 changed files with 245 additions and 35 deletions

View file

@ -31,9 +31,19 @@
#include "UI/GameInfoCache.h"
#include "UI/MiscScreens.h"
#include "UI/MainScreen.h"
#include "UI/BackgroundAudio.h"
#include "Core/Host.h"
#include "Core/Config.h"
GameScreen::GameScreen(const std::string &gamePath) : UIDialogScreenWithGameBackground(gamePath) {
SetBackgroundAudioGame(gamePath);
}
GameScreen::~GameScreen() {
SetBackgroundAudioGame("");
}
void GameScreen::CreateViews() {
GameInfo *info = g_gameInfoCache.GetInfo(gamePath_, GAMEINFO_WANTBG | GAMEINFO_WANTSIZE);