bugfix in source editor

[?]
Aug 31, 2023, 5:30 AM
O5TGYJZQ2NDBC53BP2NDEKKKCIBSJYEIQVJRK6CQFHBPHB6GGHWAC

Dependencies

  • [2] ED4Z6ORC cleaner API for file-system access
  • [3] KKMFQDR4 editing source code from within the app

Change contents

  • replacement in source_file.lua at line 4
    [3.150376][3.150376:150424]()
    local infile = App.open_for_reading(filename)
    [3.150376]
    [3.150424]
    local infile = App.open_for_reading(App.save_dir..filename)
    if not infile then
    infile = App.open_for_reading(App.source_dir..filename)
    end
  • replacement in source_file.lua at line 16
    [3.150511][2.11:93]()
    -- the source editor supports only files in the save dir, not even subdirectories
    [3.150511]
    [3.150511]
    -- the source editor supports only files in the save dir backed by the source dir
  • edit in source_file.lua at line 19
    [2.162]
    [3.150596]
    if not infile then
    infile = App.open_for_reading(App.source_dir..State.filename)
    end