@@ -58,7 +58,7 @@ void Utils::removeCard() {
5858}
5959
6060void Utils::setNewSong () {
61- if (Utils::getBool (" playlistMode" )) return Utils::playlistModeNewSong ();
61+ if (Utils::getBool (" playlistMode" )) return Utils::constantShuffleModeNewSong ();
6262 FMODAudioEngine::sharedEngine ()->m_backgroundMusicChannel ->stop ();
6363 SongManager& songManager = SongManager::get ();
6464 const std::string& songToBeStored = songManager.getCurrentSong ();
@@ -69,7 +69,7 @@ void Utils::setNewSong() {
6969 GameManager::sharedState ()->playMenuMusic ();
7070}
7171
72- void Utils::playlistModeNewSong (const bool fromGJBGL) {
72+ void Utils::constantShuffleModeNewSong (const bool fromGJBGL) {
7373 if (VANILLA_GD_MENU_LOOP_DISABLED) return ;
7474 if (!Utils::getBool (" playlistMode" )) return Utils::setNewSong ();
7575 geode::log::info (" attempting to hijack menuloop channel to use Constant Shuffle Mode" );
@@ -202,8 +202,8 @@ std::string Utils::getFormattedNGMLSongName(SongInfoObject* songInfo) {
202202 return fmt::format (" {}" , songInfo->m_songName );
203203}
204204
205- void Utils::playlistModePLAndEPL () {
206- if (Utils::getBool (" playlistMode" ) && GJBaseGameLayer::get ()) return Utils::playlistModeNewSong (true );
205+ void Utils::constantShuffleModePLAndEPL () {
206+ if (Utils::getBool (" playlistMode" ) && GJBaseGameLayer::get ()) return Utils::constantShuffleModeNewSong (true );
207207}
208208
209209void Utils::copyCurrentSongName () {
@@ -290,6 +290,7 @@ void Utils::populateVector(const bool customSongs, const std::filesystem::path&
290290
291291 // impl playlist files
292292 const std::filesystem::path playlistFile = geode::Mod::get ()->getSettingValue <std::filesystem::path>(" playlistFile" );
293+ songManager.setPlaylistFileName ();
293294 if (geode::Mod::get ()->getSettingValue <bool >(" loadPlaylistFile" ) && std::filesystem::exists (playlistFile) && playlistFile.extension () == " .txt" ) {
294295 bool isPlaylistEmpty = true ;
295296 std::ifstream playlistFileStream (playlistFile);
0 commit comments