From 6b5e417aecde560a58be39485f8d92e1c677e259 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=8D=9A=7ENex?= <87421482+NexIsDumb@users.noreply.github.com> Date: Mon, 4 Aug 2025 06:39:21 +0200 Subject: [PATCH] TREMBLE, freeplaySonglist IS NOW INSIDE CONFIGS --- assets/data/{ => config}/freeplaySonglist.txt | 0 source/funkin/menus/FreeplayState.hx | 9 +++++++-- 2 files changed, 7 insertions(+), 2 deletions(-) rename assets/data/{ => config}/freeplaySonglist.txt (100%) 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;