Add step to remove folder before unpacking with pakcomposer

This commit is contained in:
Stewie
2022-03-20 10:17:55 -04:00
parent f3aed5e326
commit 7eb2279edc
2 changed files with 2 additions and 1 deletions

View File

@@ -12,7 +12,7 @@ import lxml.etree as etree
tool = ToolsTOR.ToolsTOR("TBL_All.json")
tool.extract_Main_Archive()
tool.extract_All_Menu()

View File

@@ -851,6 +851,7 @@ class ToolsTales:
#Extract if needed (PakComposer or other)
if "pak" in file_name:
shutil.rmtree(menu_path+file_number)
self.pakComposer_Comptoe(menu_path+file_name, "-d", "-{}".format(file_name[-1]), True, os.getcwd())