bugfix: save modified files in save directory
[?]
Sep 5, 2022, 7:39 PM
HKV72RZVJEOF5GCHCRKEBGC3FQN7AYETY7LKEJUXVIQAB4QPEPYQCDependencies
- [2]
PX7DDEMOautosave slightly less aggressively - [3]
AD34IX2Zcouple more tests - [4]
JFFUF5ALoverride mouse state lookups in tests - [5]
JF5L2BBStest harness now supports copy/paste - [6]
7CLGG7J2test: autosave after any shape - [7]
AVTNUQYRbasic test-enabled framework - [8]
ZLJGZYQGselect text with shift + mouseclick - [*]
3QNOKBFMbeginnings of a test harness
Change contents
- replacement in app.lua at line 386
App.open_for_reading = function(filename) return io.open(filename, 'r') endApp.open_for_writing = function(filename) return io.open(filename, 'w') endif Current_app == nil or Current_app == 'run' thenApp.open_for_reading = function(filename) return io.open(filename, 'r') endApp.open_for_writing = function(filename) return io.open(filename, 'w') endelseif Current_app == 'source' then-- HACK: source editor requires a couple of different foundational definitionsApp.open_for_reading =function(filename)local result = love.filesystem.newFile(filename)local ok, err = result:open('r')if ok thenreturn resultelsereturn ok, errendendApp.open_for_writing =function(filename)local result = love.filesystem.newFile(filename)local ok, err = result:open('w')if ok thenreturn resultelsereturn ok, errendendend