support a commandline arg just like in pensieve.love
[?]
Jan 31, 2023, 5:02 AM
T4C5HT2OQIZQQTGOYNR2EFUQSMAR5UR2NFMERD7SEL7MNAVXX24QCDependencies
- [2]
XKE4KC65Merge upstream - [3]
3HIZXZI7Merge lines.love - [4]
CV6XLZMWtrailing slash on directory - [5]
QZ2SXLHFsome debug prints - [6]
ZJOSQFN6bugfix: path munging on Windows - [7]
UHB4GARJleft/right margin -> left/right coordinates - [8]
TGZAJUEFbring back a set of constants - [9]
2L5MEZV3experiment: new edit namespace - [10]
LF7BWEG4group all editor globals - [11]
57OGXVHZMerge lines.love - [12]
MSDHRXWUMerge upstream into main - [13]
KKMFQDR4editing source code from within the app - [*]
FS2ITYYHrecord a known issue
Change contents
- replacement in run.lua at line 25
assert(#arg == 0)-- '/' should work even on Windows - replacement in run.lua at line 27
Editor_state.filename = Editor_state.directory..Editor_state.file_pathlocal base_dir = dirname(love.filesystem.getSaveDirectory())if #arg == 0 thenEditor_state.directory = 'pensieve/data/'elseEditor_state.directory = 'pensieve/data.'..arg[1]..'/'endEditor_state.filename = base_dir..Editor_state.directory..Editor_state.file_path - replacement in edit.lua at line 97
directory = dirname(love.filesystem.getSaveDirectory())..'pensieve/data/', -- '/' should work even on Windowsdirectory = nil, - edit in README.md at line 21
If you invoke pensieve with an additional arg (see its docs), you can alsopass it in to capture.