From eaadfce496989ff703ea864b66d615253bae9f8c Mon Sep 17 00:00:00 2001 From: Pixel Date: Fri, 26 Oct 2012 20:34:02 -0700 Subject: Fixing my previous commit, restoring the room system. --- VP-roomwork.lua | 6 +++--- 1 file 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) -- cgit v1.2.3