diff --git a/assets/data/freeplaySonglist.txt b/assets/data/config/freeplaySonglist.txt similarity index 100% rename from assets/data/freeplaySonglist.txt rename to assets/data/config/freeplaySonglist.txt diff --git a/source/funkin/menus/FreeplayState.hx b/source/funkin/menus/FreeplayState.hx index 7dcb6f3d..824abdf6 100644 --- a/source/funkin/menus/FreeplayState.hx +++ b/source/funkin/menus/FreeplayState.hx @@ -473,9 +473,14 @@ class FreeplaySonglist { public function new() {} public function getSongsFromSource(source:funkin.backend.assets.AssetSource, useTxt:Bool = true) { - var path:String = Paths.txt('freeplaySonglist'); - var songsFound:Array = useTxt && Paths.assetsTree.existsSpecific(path, "TEXT", source) ? CoolUtil.coolTextFile(path) : Paths.getFolderDirectories('songs', false, source); + var oldPath = Paths.txt("freeplaySonglist"); + var newPath = Paths.txt("config/freeplaySonglist"); + var path:String = useTxt && !Paths.assetsTree.existsSpecific(newPath, "TEXT", source) && Paths.assetsTree.existsSpecific(oldPath, "TEXT", source) ? { + Logs.warn("data/freeplaySonglist.txt is deprecated and will be removed in the future. Please move the file to data/config/", DARKYELLOW, "FreeplaySonglist"); + oldPath; + } : newPath; + var songsFound:Array = useTxt && Paths.assetsTree.existsSpecific(path, "TEXT", source) ? CoolUtil.coolTextFile(path): Paths.getFolderDirectories("songs", false, source); if (songsFound.length > 0) { for (s in songsFound) songs.push(Chart.loadChartMeta(s, Flags.DEFAULT_DIFFICULTY, source == MODS)); return false;