Skip to content

Commit 1732894

Browse files
committed
ok coo
1 parent c0c92ad commit 1732894

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/main.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ 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);
128129
if (!Utils::isSupportedFile(overrideString) && overrideString.empty()) {
129130
songManager.clearSongs();
130131
geode::log::info("repopulating vector from removing override");
@@ -133,12 +134,10 @@ bool originalOverrideWasEmpty = false;
133134
if (SongManager::get().getAdvancedLogs()) log::info("setting songManager's current song to saved song from settings change");
134135
songManager.setCurrentSongToSavedSong();
135136
} else Utils::setNewSong();
136-
} else if (!overrideString.empty()) {
137-
songManager.setOverride(overrideString);
138-
songManager.setCurrentSongDisplayName(Utils::toNormalizedString(specificSongOverride.stem()));
139137
}
140138
geode::Loader::get()->queueInMainThread([] { Utils::queueUpdateFrontfacingLabelsInSCMAndSLL(); });
141139
GameManager::sharedState()->playMenuMusic();
140+
Utils::newCardAndDisplayNameFromCurrentSong();
142141
});
143142
listenForSettingChanges<bool>("dangerousBlacklisting", [](const bool dangerousBlacklisting) {
144143
if (!dangerousBlacklisting) return;

0 commit comments

Comments
 (0)