about summary refs log tree commit diff stats
path: root/main.lua
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2022-07-01 12:26:58 -0700
committerKartik K. Agaram <vc@akkartik.com>2022-07-01 12:31:23 -0700
commitf311013200bf62d28d3a548963c1e56f7c4ca3dc (patch)
tree67941ca45d02218361bf38ee862041a48416fc1e /main.lua
parent914d9c6f981c1415a389cd87034779da58234bc9 (diff)
downloadlines.love-f311013200bf62d28d3a548963c1e56f7c4ca3dc.tar.gz
include CWD when saving filename
Diffstat (limited to 'main.lua')
-rw-r--r--main.lua4
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