bugfix: path munging on Windows
[?]
Sep 11, 2022, 2:23 AM
ZJOSQFN6CH475MQZ5EXWSWILKNC77RVFEN44KQ2Y4EQJ2BC5YFCACDependencies
- [2]
KKMFQDR4editing source code from within the app - [3]
X3CQLBTRset window title within each app - [4]
OI4FPFINsupport drawings in the source editor - [5]
2L5MEZV3experiment: new edit namespace - [6]
TGZAJUEFbring back a set of constants - [7]
CQYKYJJUremember window positions across restart/ctrl+e - [8]
LF7BWEG4group all editor globals
Change contents
- replacement in source_edit.lua at line 103
filename = love.filesystem.getUserDirectory()..'/lines.txt',filename = love.filesystem.getUserDirectory()..'/lines.txt', -- '/' should work even on Windows - replacement in source.lua at line 260
if filename:sub(1,1) ~= '/' thenfilename = love.filesystem.getWorkingDirectory()..'/'..filename -- '/' should work even on Windowslocal os_path_separator = package.config:sub(1,1)if filename:sub(1,1) ~= os_path_separator thenfilename = love.filesystem.getWorkingDirectory()..os_path_separator..filename - replacement in run.lua at line 144
if filename:sub(1,1) ~= '/' thenfilename = love.filesystem.getWorkingDirectory()..'/'..filename -- '/' should work even on Windowslocal os_path_separator = package.config:sub(1,1)if filename:sub(1,1) ~= os_path_separator thenfilename = love.filesystem.getWorkingDirectory()..os_path_separator..filename - replacement in edit.lua at line 97
filename = love.filesystem.getUserDirectory()..'/lines.txt',filename = love.filesystem.getUserDirectory()..'/lines.txt', -- '/' should work even on Windows