mirror of
https://github.com/notwa/mm
synced 2024-11-04 22:49:03 -08:00
reverse serialize's arguments
This commit is contained in:
parent
3194baa4a5
commit
84fef6ed4f
3 changed files with 3 additions and 3 deletions
|
@ -64,7 +64,7 @@ me.modified = deserialize(fn) or {}
|
|||
while version == "O EUDB MQ" do
|
||||
me:diff()
|
||||
if me.dirty then
|
||||
serialize(me.modified, (fn))
|
||||
serialize(fn, me.modified)
|
||||
me.dirty = false
|
||||
end
|
||||
emu.frameadvance()
|
||||
|
|
|
@ -46,7 +46,7 @@ function _deserialize(script)
|
|||
end
|
||||
end
|
||||
|
||||
function serialize(value, path)
|
||||
function serialize(path, value)
|
||||
local file = open(path, 'w')
|
||||
if not file then return end
|
||||
file:write("return ")
|
||||
|
|
|
@ -15,7 +15,7 @@ while mm or oot do
|
|||
if not anims_seen[anim_id] then
|
||||
anims_seen[anim_id] = true
|
||||
print(frame, hexid)
|
||||
serialize(anims_seen, fn)
|
||||
serialize(fn, anims_seen)
|
||||
end
|
||||
end
|
||||
emu.frameadvance()
|
||||
|
|
Loading…
Reference in a new issue