diff options
-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) |