Skip to content

Instantly share code, notes, and snippets.

@jocafa
Created August 11, 2021 04:50
Show Gist options
  • Save jocafa/3b262d4f7b7219cca841eaf9f0383fc4 to your computer and use it in GitHub Desktop.
Save jocafa/3b262d4f7b7219cca841eaf9f0383fc4 to your computer and use it in GitHub Desktop.
local dumpDepth = 0
function dumpList(key)
print(string.rep(' ', dumpDepth)..key)
local list = ListKeys(key)
for i=1, #list do
dumpDepth = dumpDepth + 1
dumpList(key..'.'..list[i])
dumpDepth = dumpDepth - 1
end
end
function init()
dumpList('options')
dumpList('game')
dumpList('savegame')
dumpList('level')
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment