Skip to content
This repository was archived by the owner on Aug 5, 2025. It is now read-only.

Commit 6e2af84

Browse files
committed
sorry
1 parent c6a511a commit 6e2af84

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

source/funkin/backend/assets/AssetsLibraryList.hx

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -147,19 +147,21 @@ class AssetsLibraryList extends AssetLibrary {
147147

148148
public function new(?base:AssetLibrary) {
149149
super();
150-
#if (sys && TEST_BUILD)
151-
Logs.infos("Used cne test / cne build. Switching into source assets.");
152-
#if MOD_SUPPORT
153-
ModsFolder.modsPath = './${Main.pathBack}mods/';
154-
ModsFolder.addonsPath = './${Main.pathBack}addons/';
155-
#end
156-
__defaultLibraries.push(ModsFolder.loadLibraryFromFolder('assets', './${Main.pathBack}assets/', true, SOURCE));
157-
#elseif USE_ADAPTED_ASSETS
158-
__defaultLibraries.push(ModsFolder.loadLibraryFromFolder('assets', './assets/', true, SOURCE));
159-
#else
160150
if (base == null) (this.base = Assets.getLibrary("default")).tag = SOURCE;
161151
else this.base = base;
162152
__defaultLibraries.push(this.base);
153+
154+
#if (sys && TEST_BUILD)
155+
Logs.infos("Used cne test / cne build. Switching into source assets.");
156+
157+
#if MOD_SUPPORT
158+
ModsFolder.modsPath = './${Main.pathBack}mods/';
159+
ModsFolder.addonsPath = './${Main.pathBack}addons/';
160+
#end
161+
162+
__defaultLibraries.push(ModsFolder.loadLibraryFromFolder('assets', './${Main.pathBack}assets/', true, SOURCE));
163+
#elseif USE_ADAPTED_ASSETS
164+
__defaultLibraries.push(ModsFolder.loadLibraryFromFolder('assets', './assets/', true, SOURCE));
163165
#end
164166
for (d in __defaultLibraries) addLibrary(d);
165167
}

0 commit comments

Comments
 (0)