File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -125,15 +125,17 @@ bool originalOverrideWasEmpty = false;
125125 if (VANILLA_GD_MENU_LOOP_DISABLED) return ;
126126 FMODAudioEngine::get ()->m_backgroundMusicChannel ->stop ();
127127 const std::string& overrideString = Utils::toNormalizedString (specificSongOverride);
128- songManager.setOverride (overrideString);
129- if (!Utils::isSupportedFile (overrideString)) {
128+ if (!Utils::isSupportedFile (overrideString) && overrideString.empty ()) {
130129 songManager.clearSongs ();
131130 geode::log::info (" repopulating vector from removing override" );
132131 Utils::refreshTheVector ();
133132 if (Utils::isSupportedFile (Mod::get ()->getSavedValue <std::string>(" lastMenuLoop" )) && Utils::getBool (" saveSongOnGameClose" ) && !originalOverrideWasEmpty) {
134133 if (SongManager::get ().getAdvancedLogs ()) log::info (" setting songManager's current song to saved song from settings change" );
135134 songManager.setCurrentSongToSavedSong ();
136135 } else Utils::setNewSong ();
136+ } else if (!overrideString.empty ()) {
137+ songManager.setOverride (overrideString);
138+ songManager.setCurrentSongDisplayName (Utils::toNormalizedString (specificSongOverride.stem ()));
137139 }
138140 geode::Loader::get ()->queueInMainThread ([] { Utils::queueUpdateFrontfacingLabelsInSCMAndSLL (); });
139141 GameManager::sharedState ()->playMenuMusic ();
You can’t perform that action at this time.
0 commit comments