use my name for a dir
This commit is contained in:
parent
5d41640d2f
commit
aa9a0b0b15
2
app.lua
2
app.lua
|
@ -480,7 +480,7 @@ function App.disable_tests()
|
||||||
App.files = nativefs.getDirectoryItems
|
App.files = nativefs.getDirectoryItems
|
||||||
App.mkdir = nativefs.createDirectory
|
App.mkdir = nativefs.createDirectory
|
||||||
App.remove = nativefs.remove
|
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.current_dir = nativefs.getWorkingDirectory()..'/'
|
||||||
App.save_dir = love.filesystem.getSaveDirectory()..'/'
|
App.save_dir = love.filesystem.getSaveDirectory()..'/'
|
||||||
App.get_time = love.timer.getTime
|
App.get_time = love.timer.getTime
|
||||||
|
|
2
run.lua
2
run.lua
|
@ -163,7 +163,7 @@ end
|
||||||
|
|
||||||
function absolutize(path)
|
function absolutize(path)
|
||||||
if is_relative_path(path) then
|
if is_relative_path(path) then
|
||||||
return love.filesystem.getWorkingDirectory()..'/'..path -- '/' should work even on Windows
|
return App.current_dir..path
|
||||||
end
|
end
|
||||||
return path
|
return path
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue
Block a user