Merge text0
[?]
Aug 31, 2023, 5:58 AM
NILDKUJVRKOOOX6FKSFN3STLCBLLIDBYCLYFUJZWJ2D4PJN2WSGQCDependencies
- [2]
N4T2HHMVMerge text0 - [3]
JCRUUD2SMerge text.love - [4]
PX7DDEMOautosave slightly less aggressively - [5]
HLIF3YQEMerge text0 - [6]
AVTNUQYRbasic test-enabled framework - [7]
7IDHIAYIrename modifier_down to key_down - [8]
H4R5BHVYno more Text allocations - [9]
ED4Z6ORCcleaner API for file-system access - [10]
HKV72RZVbugfix: save modified files in save directory - [11]
CZQ3NJ4NMerge text0 - [12]
FPY4LO2Wmake a few names consistent with snake_case - [13]
JCXL74WVbring back everything from commit a68647ae22 - [14]
JNJ4R56Xsupport running tests multiple times - [15]
JMUD7T3Oget rid of ugly side-effects in tests - [16]
36Z442IVback to commit 8123959e52f without code editing - [17]
ORRSP7FVdeduce test names on failures - [*]
3QNOKBFMbeginnings of a test harness
Change contents
- edit in app.lua at line 1[19.2][4.8414]
nativefs = require 'nativefs' - replacement in app.lua at line 55
App.open_for_reading = function(filename) return io.open(filename, 'r') endApp.open_for_writing = function(filename) return io.open(filename, 'w') endApp.getTime = love.timer.getTimeApp.getClipboardText = love.system.getClipboardTextApp.setClipboardText = love.system.setClipboardTextApp.open_for_reading =function(filename)local result = nativefs.newFile(filename)local ok, err = result:open('r')if ok thenreturn resultelsereturn ok, errendendApp.open_for_writing =function(filename)local result = nativefs.newFile(filename)local ok, err = result:open('w')if ok thenreturn resultelsereturn ok, errendendApp.files = nativefs.getDirectoryItemsApp.source_dir = love.filesystem.getSource()..'/'App.current_dir = nativefs.getWorkingDirectory()..'/'App.save_dir = love.filesystem.getSaveDirectory()..'/'App.get_time = love.timer.getTimeApp.get_clipboard = love.system.getClipboardTextApp.set_clipboard = love.system.setClipboardText - edit in app.lua at line 472[4.61193]→[4.15996:16027](∅→∅),[4.61193]→[4.15996:16027](∅→∅),[4.61193]→[4.15996:16027](∅→∅),[4.8029]→[4.16028:16250](∅→∅),[4.8029]→[4.16028:16250](∅→∅),[4.16250]→[3.19:31](∅→∅),[4.16250]→[3.19:31](∅→∅),[3.31]→[4.16251:16483](∅→∅),[4.636]→[4.16251:16483](∅→∅),[4.16483]→[3.32:44](∅→∅),[4.16483]→[3.32:44](∅→∅),[3.44]→[4.16484:16700](∅→∅),[4.907]→[4.16484:16700](∅→∅),[4.907]→[4.16484:16700](∅→∅),[4.16700]→[4.880:1018](∅→∅),[4.913]→[4.880:1018](∅→∅),[4.913]→[4.880:1018](∅→∅)
nativefs = require 'nativefs'App.open_for_reading =function(filename)local result = nativefs.newFile(filename)local ok, err = result:open('r')if ok thenreturn resultelsereturn ok, errendendApp.open_for_writing =function(filename)local result = nativefs.newFile(filename)local ok, err = result:open('w')if ok thenreturn resultelsereturn ok, errendendApp.files = nativefs.getDirectoryItemsApp.source_dir = love.filesystem.getSource()..'/'App.current_dir = nativefs.getWorkingDirectory()..'/'App.save_dir = love.filesystem.getSaveDirectory()..'/'App.get_time = love.timer.getTimeApp.get_clipboard = love.system.getClipboardTextApp.set_clipboard = love.system.setClipboardText