include CWD when saving filename
This commit is contained in:
parent
914d9c6f98
commit
f311013200
4
main.lua
4
main.lua
|
@ -321,7 +321,9 @@ function love.quit()
|
|||
local settings = {
|
||||
x=x, y=y, displayindex=displayindex,
|
||||
width=App.screen.width, height=App.screen.height,
|
||||
font_height=Font_height, filename=Filename, screen_top=Screen_top1, cursor=Cursor1}
|
||||
font_height=Font_height,
|
||||
filename=love.filesystem.getWorkingDirectory()..'/'..Filename, -- '/' should work even on Windows
|
||||
screen_top=Screen_top1, cursor=Cursor1}
|
||||
love.filesystem.write('config', json.encode(settings))
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue