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.
This commit is contained in:
parent
f7f5973cb7
commit
fceb2404fb
2
edit.lua
2
edit.lua
|
@ -94,7 +94,7 @@ function edit.initialize_state(top, left, right, font_height, line_height) -- c
|
||||||
right = math.floor(right),
|
right = math.floor(right),
|
||||||
width = right-left,
|
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,
|
next_save = nil,
|
||||||
|
|
||||||
-- undo
|
-- undo
|
||||||
|
|
Loading…
Reference in New Issue