Merge text0

[?]
Aug 31, 2023, 5:58 AM
NILDKUJVRKOOOX6FKSFN3STLCBLLIDBYCLYFUJZWJ2D4PJN2WSGQC

Dependencies

  • [2] N4T2HHMV Merge text0
  • [3] JCRUUD2S Merge text.love
  • [4] PX7DDEMO autosave slightly less aggressively
  • [5] HLIF3YQE Merge text0
  • [6] AVTNUQYR basic test-enabled framework
  • [7] 7IDHIAYI rename modifier_down to key_down
  • [8] H4R5BHVY no more Text allocations
  • [9] ED4Z6ORC cleaner API for file-system access
  • [10] HKV72RZV bugfix: save modified files in save directory
  • [11] CZQ3NJ4N Merge text0
  • [12] FPY4LO2W make a few names consistent with snake_case
  • [13] JCXL74WV bring back everything from commit a68647ae22
  • [14] JNJ4R56X support running tests multiple times
  • [15] JMUD7T3O get rid of ugly side-effects in tests
  • [16] 36Z442IV back to commit 8123959e52f without code editing
  • [17] ORRSP7FV deduce test names on failures
  • [*] 3QNOKBFM beginnings 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
    [4.1342][4.1342:1641]()
    App.open_for_reading = function(filename) return io.open(filename, 'r') end
    App.open_for_writing = function(filename) return io.open(filename, 'w') end
    App.getTime = love.timer.getTime
    App.getClipboardText = love.system.getClipboardText
    App.setClipboardText = love.system.setClipboardText
    [4.1209]
    [2.18]
    App.open_for_reading =
    function(filename)
    local result = nativefs.newFile(filename)
    local ok, err = result:open('r')
    if ok then
    return result
    else
    return ok, err
    end
    end
    App.open_for_writing =
    function(filename)
    local result = nativefs.newFile(filename)
    local ok, err = result:open('w')
    if ok then
    return result
    else
    return ok, err
    end
    end
    App.files = nativefs.getDirectoryItems
    App.source_dir = love.filesystem.getSource()..'/'
    App.current_dir = nativefs.getWorkingDirectory()..'/'
    App.save_dir = love.filesystem.getSaveDirectory()..'/'
    App.get_time = love.timer.getTime
    App.get_clipboard = love.system.getClipboardText
    App.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 then
    return result
    else
    return ok, err
    end
    end
    App.open_for_writing =
    function(filename)
    local result = nativefs.newFile(filename)
    local ok, err = result:open('w')
    if ok then
    return result
    else
    return ok, err
    end
    end
    App.files = nativefs.getDirectoryItems
    App.source_dir = love.filesystem.getSource()..'/'
    App.current_dir = nativefs.getWorkingDirectory()..'/'
    App.save_dir = love.filesystem.getSaveDirectory()..'/'
    App.get_time = love.timer.getTime
    App.get_clipboard = love.system.getClipboardText
    App.set_clipboard = love.system.setClipboardText