specify app in manifest

This will help the driver maintain separate settings for each app.
This commit is contained in:
Kartik K. Agaram 2023-01-02 18:24:24 -08:00
parent b4fff66a56
commit b6fc07a36b
1 changed files with 2 additions and 0 deletions

View File

@ -138,6 +138,7 @@ function live.load_everything_in_manifest()
end
PARENT = 'fw_parent'
APP = 'fw_app'
function live.versioned_filename(index, root)
return ('%04d-%s'):format(index, root)
@ -215,6 +216,7 @@ function live.run(buf)
if cmd == 'QUIT' then
love.event.quit(1)
elseif cmd == 'MANIFEST' then
Live.manifest[APP] = love.filesystem.getIdentity() -- doesn't need to be persisted, but no harm if it does..
live.send_to_driver(json.encode(Live.manifest))
elseif cmd == 'DELETE' then
local binding = buf:match('^%S+%s+(%S+)')