From 1aacf14c6b3a6f5261f0b7ce2d1a6d6814f633d7 Mon Sep 17 00:00:00 2001 From: StrawberrySage <110337474+StrawberrySage@users.noreply.github.com> Date: Tue, 12 Nov 2024 06:05:52 +1100 Subject: [PATCH] Make Paths.getAssetsRoot() return the source assets rather than the exported assets when using ./cne test (#389) --- source/funkin/backend/assets/Paths.hx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/funkin/backend/assets/Paths.hx b/source/funkin/backend/assets/Paths.hx index 1bc880ff3..ed8a869b8 100644 --- a/source/funkin/backend/assets/Paths.hx +++ b/source/funkin/backend/assets/Paths.hx @@ -182,7 +182,7 @@ class Paths return FlxAtlasFrames.fromAseprite('$key.png', '$key.json'); inline static public function getAssetsRoot():String - return ModsFolder.currentModFolder != null ? '${ModsFolder.modsPath}${ModsFolder.currentModFolder}' : './assets'; + return ModsFolder.currentModFolder != null ? '${ModsFolder.modsPath}${ModsFolder.currentModFolder}' : #if TEST_BUILD './${Main.pathBack}assets/' #else './assets' #end; /** * Gets frames at specified path.