about summary refs log tree commit diff stats
path: root/source_file.lua
Commit message (Collapse)AuthorAgeFilesLines
* audit all assertsKartik K. Agaram2023-11-181-8/+5
| | | | | | | | | | | | | Each one should provide a message that will show up within LÖVE. Stop relying on nearby prints to the terminal. I also found some unnecessary ones. There is some potential here for performance regressions: the format() calls will trigger whether or not the assertion fails, and cause allocations. So far Lua's GC seems good enough to manage the load even with Moby Dick, even in some situations that caused issues in the past like undo.
* yet another set of bugfixesKartik K. Agaram2023-08-301-1/+1
| | | | | The key API change I'd underestimated: opening a file used to return nil on failure, and now returns false.
* bugfix in source editorKartik K. Agaram2023-08-301-2/+8
| | | | We now need to explicitly select the directory we want to read from.
* cleaner API for file-system accessKartik K. Agaram2023-08-301-2/+3
| | | | | | | | | | | | | | | | | | | | | Thanks to physfs and nativefs.lua nativefs still introduces some inconsistencies with love.filesystem with relative paths: * love.fs.read: reads from save dir if it exists, falls back to source dir if not * nativefs.read: reads from save dir if it exists, falls back to source dir if not ✓ * love.fs.write: always writes to save dir * nativefs.write: always writes to source dir (since no restrictions) * love.fs.newFile followed by file:open('r'): reads from save dir if it exists, source dir if not * nativefs.newFile followed by file:open('r'): always reads from working dir * love.fs.newFile followed by file:open('w'): always writes to save dir * nativefs.newFile followed by file:open('w'): always writes to working dir So avoid using relative paths with App primitives.
* bugfix: drawings in source editorKartik K. Agaram2023-05-301-5/+10
| | | | | | | | | | | | | | | Broken since 2022-09 X-( Scenario: * switch to source editor * draw a line * wait 3 seconds Before this commit the app would crash and then fail to restart until you deleted the created .lua file from save dir. This is not the first time I've confused Lua's files and LÖVE's droppedFile objects. Just never rely on multiple args in file:write().
* clean up some final bifold codeKartik K. Agaram2023-04-011-18/+2
|
* fix support for absolute paths in WindowsKartik K. Agaram2022-09-261-0/+1
|
* migrate old settings, attempt #3Kartik K. Agaram2022-09-191-0/+36
| | | | | This time we have to handle absolute filenames. Now lines-polygon-experiment fork should merge successfully, at least.
* more correct absolute path detectionKartik K. Agaram2022-09-111-0/+17
|
* support drawings in the source editorKartik K. Agaram2022-09-051-17/+139
|
* duplicateKartik K. Agaram2022-09-031-10/+0
|
* editing source code from within the appKartik K. Agaram2022-09-031-0/+89
integrated from pong.love via text.love: https://merveilles.town/@akkartik/108933336531898243