diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2022-07-01 12:26:58 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2022-07-01 12:31:23 -0700 |
commit | f311013200bf62d28d3a548963c1e56f7c4ca3dc (patch) | |
tree | 67941ca45d02218361bf38ee862041a48416fc1e | |
parent | 914d9c6f981c1415a389cd87034779da58234bc9 (diff) | |
download | view.love-f311013200bf62d28d3a548963c1e56f7c4ca3dc.tar.gz |
include CWD when saving filename
-rw-r--r-- | main.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/main.lua b/main.lua index dff23c0..1ba8e6d 100644 --- a/main.lua +++ b/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 |