From fceb2404fb42475d53a23e6babdf7307c192c0c1 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sat, 18 Mar 2023 23:12:50 -0700 Subject: [PATCH] move default file location This works better on mobile platforms while seeming about as useful anywhere else. I've verified that anyone who already edited a file will continue to use its path from settings. --- edit.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/edit.lua b/edit.lua index 715fd1a..60561bf 100644 --- a/edit.lua +++ b/edit.lua @@ -94,7 +94,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 -- 2.11.4.GIT