MCPcopy Create free account
hub / github.com/AbyssEngine/AbyssEngineOld / playMainThemeMusic

Method playMainThemeMusic

src/OD2/Scenes/MainMenu/MainMenu.cpp:43–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41}
42
43void MainMenu::playMainThemeMusic() {
44 if (Abyss::AbyssEngine::getInstance().fileExists(Common::ResourcePaths::Music::Title)) {
45 Abyss::AbyssEngine::getInstance().setBackgroundMusic(Common::ResourcePaths::Music::Title);
46 } else {
47 Abyss::AbyssEngine::getInstance().setBackgroundMusic(Common::SoundManager::getInstance().getSound("jukebox_music_group1"));
48 }
49}
50
51void MainMenu::processEvent(const SDL_Event &event) {
52 if (_screenMode == ScreenMode::TradeMark && event.type == SDL_MOUSEBUTTONDOWN && event.button.button == SDL_BUTTON_LEFT) {

Callers

nothing calls this directly

Calls 2

setBackgroundMusicMethod · 0.80
fileExistsMethod · 0.45

Tested by

no test coverage detected