use my name for a dir

This commit is contained in:
Kartik K. Agaram 2023-10-27 23:58:42 -07:00
parent 5d41640d2f
commit aa9a0b0b15
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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