GXE3ESLGGSXI45XXDOBZLAPT6DR2J7Q7LBMSHHYVOPHK3WAALZPQC Live.manifest[PARENT] = Live.headlocal manifest_filename = live.versioned_manifest(Live.next_version)love.filesystem.write(manifest_filename, json.encode(Live.manifest))Live.head = Live.next_versionlove.filesystem.write('head', tostring(Live.head))Live.next_version = Live.next_version + 1
live.roll_forward()
Live.manifest[PARENT] = Live.headlocal manifest_filename = live.versioned_manifest(Live.next_version)love.filesystem.write(manifest_filename, json.encode(Live.manifest))Live.head = Live.next_versionlove.filesystem.write('head', tostring(Live.head))Live.next_version = Live.next_version + 1
live.roll_forward()
-- roll backLive.head = Live.manifest[PARENT]love.filesystem.write('head', tostring(Live.head))local previous_manifest_filename = live.versioned_manifest(Live.head)Live.manifest = json.decode(love.filesystem.read(previous_manifest_filename))
live.roll_back()
-- update Live.Head and record the new Live.Manifest (which caller has already modified)function live.roll_forward()Live.manifest[PARENT] = Live.headlocal manifest_filename = live.versioned_manifest(Live.next_version)love.filesystem.write(manifest_filename, json.encode(Live.manifest))Live.head = Live.next_versionlove.filesystem.write('head', tostring(Live.head))Live.next_version = Live.next_version + 1end-- update app.Head and reload app.Manifest appropriatelyfunction live.roll_back()Live.head = Live.manifest[PARENT]love.filesystem.write('head', tostring(Live.head))local previous_manifest_filename = live.versioned_manifest(Live.head)Live.manifest = json.decode(love.filesystem.read(previous_manifest_filename))end