1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2024-11-11 03:39:59 +00:00

Remove -ifp since it doesn't exists anymore in ZAPD

This commit is contained in:
angie 2021-05-10 23:07:03 -04:00
parent 72cfbf7a9d
commit aec6add45e
No known key found for this signature in database
GPG key ID: E5212BA1B6FEA700

View file

@ -6,26 +6,18 @@ from shutil import copyfile
from multiprocessing import Pool from multiprocessing import Pool
from multiprocessing import cpu_count from multiprocessing import cpu_count
def Extract(xmlPath, outputPath, outputSourcePath): def ExtractFile(xmlPath, outputPath, outputSourcePath):
ExtractFile(xmlPath, outputPath, outputSourcePath, 1, 0) execStr = "tools/ZAPD/ZAPD.out e -eh -i %s -b baserom/ -o %s -osf %s -gsf 1 -rconf tools/ZAPDConfigs/MqDbg/Config.xml" % (xmlPath, outputPath, outputSourcePath)
def ExtractScene(xmlPath, outputPath, outputSourcePath): print(execStr)
ExtractFile(xmlPath, outputPath, outputSourcePath, 1, 1) os.system(execStr)
def ExtractFile(xmlPath, outputPath, outputSourcePath, genSrcFile, incFilePrefix):
execStr = "tools/ZAPD/ZAPD.out e -eh -i %s -b baserom/ -o %s -osf %s -gsf %i -ifp %i -rconf tools/ZAPDConfigs/MqDbg/Config.xml" % (xmlPath, outputPath, outputSourcePath, genSrcFile, incFilePrefix)
print(execStr)
os.system(execStr)
def ExtractFunc(fullPath): def ExtractFunc(fullPath):
outPath = ("assets/" + fullPath.split("assets/xml/")[1]).split(".xml")[0] print(fullPath)
outSourcePath = ("assets/" + fullPath.split("assets/xml/")[1]).split(".xml")[0] outPath = ("assets/" + fullPath.split("assets/xml/")[1]).split(".xml")[0]
outSourcePath = ("assets/" + fullPath.split("assets/xml/")[1]).split(".xml")[0]
if (fullPath.startswith("assets/xml/scenes/")): ExtractFile(fullPath, outPath, outSourcePath)
ExtractScene(fullPath, outPath, outSourcePath)
else:
Extract(fullPath, outPath, outSourcePath)
def main(): def main():
parser = argparse.ArgumentParser(description="baserom asset extractor") parser = argparse.ArgumentParser(description="baserom asset extractor")
@ -36,7 +28,7 @@ def main():
if asset_path is not None: if asset_path is not None:
if asset_path.endswith("/"): if asset_path.endswith("/"):
asset_path = asset_path[0:-1] asset_path = asset_path[0:-1]
Extract(f"assets/xml/{asset_path}.xml", f"assets/{asset_path}/", f"assets/{asset_path}/") ExtractFunc(f"assets/xml/{asset_path}.xml")
else: else:
xmlFiles = [] xmlFiles = []
for currentPath, folders, files in os.walk("assets"): for currentPath, folders, files in os.walk("assets"):