Skip to content

Commit

Permalink
Make Paths.getAssetsRoot() return the source assets rather than the e…
Browse files Browse the repository at this point in the history
…xported assets when using ./cne test (#389)
  • Loading branch information
StrawberrySage authored Nov 11, 2024
1 parent 74ce175 commit 1aacf14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/funkin/backend/assets/Paths.hx
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 1aacf14

Please sign in to comment.