diff options
author | Pixel <pixel@nobis-crew.org> | 2012-10-26 20:34:02 -0700 |
---|---|---|
committer | Pixel <pixel@nobis-crew.org> | 2012-10-26 20:34:28 -0700 |
commit | eaadfce496989ff703ea864b66d615253bae9f8c (patch) | |
tree | 088cf735c2bb937267ff2faf142b81918f553447 | |
parent | d8321af9f135590e303ea6d5f08253f432eaa726 (diff) |
Fixing my previous commit, restoring the room system.
-rw-r--r-- | VP-roomwork.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/VP-roomwork.lua b/VP-roomwork.lua index 6aacfcf..9bb590b 100644 --- a/VP-roomwork.lua +++ b/VP-roomwork.lua @@ -157,7 +157,7 @@ function process_arcroom(fname, h, size, ext) tell = h:tell() local handler = nil local counter = 1 - if dump_mode and ext == "room" and index[i].ftype == 4 then + if dump_mode and ext == "arm" and index[i].ftype == 4 then log("Preparing to dump script...") handler = function(fname, h, size, ext) if counter == 1 then @@ -173,7 +173,7 @@ function process_arcroom(fname, h, size, ext) end counter = counter + 1 end - elseif not dump_mode and ext == "room" and index[i].ftype == 4 and script and font then + elseif not dump_mode and ext == "arm" and index[i].ftype == 4 and script and font then old_script = Buffer(true) handler = function(fname, h, size, ext) local ret @@ -226,7 +226,7 @@ function process_arcroom(fname, h, size, ext) end outfile[i] = process_single_file(fname .. string.format("/%04i-%08X", i, index[i].ftype), h, index[i].size, "room", handler) if handler and script and font then - if dump_mode and ext == "room" then + if dump_mode and ext == "arm" then extract_room_script(fname .. string.format("/%04i", i), script, font) elseif dump_mode then extract_simple_script(fname .. string.format("/%04i", i), script, font) |