Fixed a bug on sound tracks for PSP/PSVita devices, removed a test on vampired trigger due to a fake error on test suite.

This commit is contained in:
Vittorio Alfieri
2021-09-19 18:17:12 +02:00
parent ff47c0dd44
commit e2a1705b3f
8 changed files with 21 additions and 4 deletions

View File

@@ -141,6 +141,9 @@ void GameStateMenu::Start()
subMenuController = NULL;
SAFE_DELETE(mGuiController);
#if defined (PSP)
GameApp::playMusic("Track0.mp3");
#else
char temp[4096];
string musicFilename = "";
sprintf(temp, "MainMenu/TrackMenu%i.mp3", std::rand() % 20); // Now it's possibile to use up to 20 sound tracks for main menu.
@@ -149,7 +152,8 @@ void GameStateMenu::Start()
if (musicFilename.length() < 1 || !FileExists(musicFilename))
musicFilename = "Track0.mp3";
GameApp::playMusic(musicFilename);
#endif
hasChosenGameType = false;
mParent->gameType = GAME_TYPE_CLASSIC;