From 4f1fe0189cbdfc7b461e9b84fb1c6f3380309477 Mon Sep 17 00:00:00 2001 From: MegaMech Date: Thu, 7 Apr 2022 02:03:07 -0700 Subject: [PATCH] Update extract_assets.py --- OTRExporter/extract_assets.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/OTRExporter/extract_assets.py b/OTRExporter/extract_assets.py index bb9ed177c..0663bd487 100755 --- a/OTRExporter/extract_assets.py +++ b/OTRExporter/extract_assets.py @@ -4,11 +4,13 @@ import argparse, json, os, signal, time, sys, shutil from multiprocessing import Pool, cpu_count, Event, Manager, ProcessError import shutil +romPath = "..\\soh\\baserom_non_mq.z64" + def BuildOTR(xmlPath): shutil.copytree("assets", "Extract/assets") execStr = "x64\\Release\\ZAPD.exe" if sys.platform == "win32" else "../ZAPD/ZAPD.out" - execStr += " ed -i %s -b baserom.z64 -fl CFG\\filelists -o placeholder -osf placeholder -gsf 1 -rconf CFG/Config.xml -se OTR" % (xmlPath) + execStr += " ed -i %s -b %s -fl CFG\\filelists -o placeholder -osf placeholder -gsf 1 -rconf CFG/Config.xml -se OTR" % (xmlPath, romPath) print(execStr) exitValue = os.system(execStr) @@ -30,6 +32,7 @@ def main(): xmlVer = "GC_NMQ_PAL_F" elif (args.version == "dbg_mq"): xmlVer = "GC_MQ_D" + romVer = "..\\soh\\baserom_mq.z64" if (os.path.exists("Extract")): shutil.rmtree("Extract") @@ -37,4 +40,4 @@ def main(): BuildOTR("..\\soh\\assets\\xml\\" + xmlVer + "\\") if __name__ == "__main__": - main() \ No newline at end of file + main()