diff --git a/Lua/oot memory editor monitor.lua b/Lua/oot memory editor monitor.lua index f6e93dc..63e91ff 100644 --- a/Lua/oot memory editor monitor.lua +++ b/Lua/oot memory editor monitor.lua @@ -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() diff --git a/Lua/serialize.lua b/Lua/serialize.lua index 819d2df..0b3dc55 100644 --- a/Lua/serialize.lua +++ b/Lua/serialize.lua @@ -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 ") diff --git a/Lua/watch animations.lua b/Lua/watch animations.lua index 4bdf93f..d3b0de1 100755 --- a/Lua/watch animations.lua +++ b/Lua/watch animations.lua @@ -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()