In the process I'm fixing a bug: if you create a load-time error it rolls back but doesn't update the head on disk. This might explain why I've seen crashes when restarting an app.
JIWWTY7RDSOBGAOSU7KBOM2SHEM543FOWIM7GEIW3IZWVJ2EDJVAC
OJLXS67N5327FN6YAZ2DUVXUEZKEN6YE3EJ5CYJP5VALLQLCXREAC
TNRO6KLZXIZUFWKCXSWAJHN2CMHS56ATGGULOKMJC2YNCFRJZKLAC
-- roll back app.Head = app.Manifest[PARENT] local previous_manifest_filename = app.versioned_manifest(app.Head) app.Manifest = json.decode(love.filesystem.read(previous_manifest_filename))
-- roll back
app.Head = app.Manifest[PARENT]
local previous_manifest_filename = app.versioned_manifest(app.Head)
app.Manifest = json.decode(love.filesystem.read(previous_manifest_filename))
app.roll_back()
endfunction app.roll_back() app.Head = app.Manifest[PARENT] love.filesystem.write('head', tostring(app.Head)) local previous_manifest_filename = app.versioned_manifest(app.Head) app.Manifest = json.decode(love.filesystem.read(previous_manifest_filename))
end
function app.roll_back()
love.filesystem.write('head', tostring(app.Head))