diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2023-03-25 17:23:57 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2023-03-25 17:23:57 -0700 |
commit | cf4451dc1b772219a79a6fc300c1196232920539 (patch) | |
tree | 24abff5425abb5085ec97023b4437a73b17850fc | |
parent | eba85af0e3084b75d11ac0a034abc5e80e33deb6 (diff) | |
parent | da932ce92dcf5930d3224c2179db41cf024f5169 (diff) | |
download | text.love-cf4451dc1b772219a79a6fc300c1196232920539.tar.gz |
Merge lines.love
-rw-r--r-- | README.md | 4 | ||||
-rw-r--r-- | source_edit.lua | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/README.md b/README.md index 97160fd..5b3cfc6 100644 --- a/README.md +++ b/README.md @@ -21,8 +21,8 @@ Alternatively, turn it into a .love file you can double-click on: $ zip -r /tmp/text.love *.lua ``` -By default, it reads/writes the file `lines.txt` in your default -user/home directory (`https://love2d.org/wiki/love.filesystem.getUserDirectory`). +By default, it reads/writes the file `lines.txt` in a directory +specific to this app (https://love2d.org/wiki/love.filesystem.getSourceBaseDirectory). To open a different file, drop it on the app window. diff --git a/source_edit.lua b/source_edit.lua index b70aab1..606b913 100644 --- a/source_edit.lua +++ b/source_edit.lua @@ -95,7 +95,7 @@ function edit.initialize_state(top, left, right, font_height, line_height) -- c right = math.floor(right), width = right-left, - filename = love.filesystem.getUserDirectory()..'/lines.txt', -- '/' should work even on Windows + filename = love.filesystem.getSourceBaseDirectory()..'/lines.txt', -- '/' should work even on Windows next_save = nil, -- undo |