start flowing code changes to the source dir again

akkartik
Dec 18, 2023, 7:43 PM
FBN32ZM3YZ2XVKZLUNYV4TGXC5BTVLN5WHM4QEOSOQ4727X4BIVAC

Dependencies

  • [2] XS5VNBHH bugfix: handle a missing save dir
  • [3] EZHO4TSW new file-system format for freewheeling apps
  • [4] 2NQZJUPT start saving edits right in the source dir
  • [5] 3JVRTWUY provide a filename for clearer error callstacks
  • [*] LRDM35CE app running again

Change contents

  • replacement in live.lua at line 166
    [3.614][3.614:679]()
    App.remove(App.source_dir..Live.filename[definition_name])
    [3.614]
    [3.2177]
    nativefs.remove(App.source_dir..Live.filename[definition_name])
  • replacement in live.lua at line 224
    [3.714][3.714:784]()
    local status, err = App.write_file(App.source_dir..filename, buf)
    [3.714]
    [3.784]
    local status, err = nativefs.write(App.source_dir..filename, buf)
  • replacement in live.lua at line 226
    [3.800][3.800:883]()
    -- not possible; perhaps it's a .love file
    -- try to write to save dir
    [3.800]
    [2.0]
    -- fall back on save dir