Make Paths.getAssetsRoot() return the source assets rather than the exported assets when using ./cne test (#389)

This commit is contained in:
StrawberrySage
2024-11-11 20:05:52 +01:00
committed by GitHub
parent 74ce1756dc
commit 1aacf14c6b
+1 -1
View File
@@ -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.