Skip to content

Commit

Permalink
Fix checkFileExists
Browse files Browse the repository at this point in the history
  • Loading branch information
ShadowMario committed Apr 4, 2024
1 parent c2a1785 commit 3509304
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/psychlua/ExtraFunctions.hx
Original file line number Diff line number Diff line change
Expand Up @@ -147,12 +147,12 @@ class ExtraFunctions
#if MODS_ALLOWED
if(absolute) return FileSystem.exists(filename);

return FileSystem.exists(Paths.getPath('assets/$filename', TEXT));
return FileSystem.exists(Paths.getPath(filename, TEXT));

#else
if(absolute) return Assets.exists(filename, TEXT);

return Assets.exists(Paths.getPath('assets/$filename', TEXT));
return Assets.exists(Paths.getPath(filename, TEXT));
#end
});
Lua_helper.add_callback(lua, "saveFile", function(path:String, content:String, ?absolute:Bool = false)
Expand Down

0 comments on commit 3509304

Please sign in to comment.