diff --git a/app.lua b/app.lua index cf89a37..841c632 100644 --- a/app.lua +++ b/app.lua @@ -480,7 +480,7 @@ function App.disable_tests() App.files = nativefs.getDirectoryItems App.mkdir = nativefs.createDirectory App.remove = nativefs.remove - App.source_dir = love.filesystem.getSource()..'/' + App.source_dir = love.filesystem.getSource()..'/' -- '/' should work even on Windows App.current_dir = nativefs.getWorkingDirectory()..'/' App.save_dir = love.filesystem.getSaveDirectory()..'/' App.get_time = love.timer.getTime diff --git a/run.lua b/run.lua index 2d86627..98a8345 100644 --- a/run.lua +++ b/run.lua @@ -163,7 +163,7 @@ end function absolutize(path) if is_relative_path(path) then - return love.filesystem.getWorkingDirectory()..'/'..path -- '/' should work even on Windows + return App.current_dir..path end return path end