From 84fef6ed4fbfb16a013e918766483b2b2c51512c Mon Sep 17 00:00:00 2001 From: Connor Olding Date: Sun, 3 May 2015 08:35:50 -0700 Subject: [PATCH] reverse serialize's arguments --- Lua/oot memory editor monitor.lua | 2 +- Lua/serialize.lua | 2 +- Lua/watch animations.lua | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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()