mirror of https://github.com/zeldaret/tp.git
Fix Build Scripts (#1879)
This commit is contained in:
parent
91d04c794d
commit
7e8fd320bd
2
Makefile
2
Makefile
|
|
@ -180,7 +180,7 @@ $(DOL_SHIFT): $(ELF_SHIFT) | tools
|
|||
|
||||
shift: dirs $(DOL_SHIFT)
|
||||
|
||||
shiftedrels: shift
|
||||
shiftedrels: shift $(RELS)
|
||||
@echo generating shifted RELs from .plf
|
||||
@echo $(RELS) > build/plf_files
|
||||
$(PYTHON) $(MAKEREL) build --string-table $(BUILD_DIR)/frameworkF.str @build/plf_files $(ELF_SHIFT)
|
||||
|
|
|
|||
|
|
@ -342,10 +342,7 @@ def main(gamePath, buildPath, copyCode, yaz0Encoding):
|
|||
|
||||
if not (gamePath / "files").exists() or not (gamePath / "sys").exists():
|
||||
print("ISO is not extracted; extracting...")
|
||||
previousDir = os.getcwd()
|
||||
os.chdir(str(gamePath.absolute()))
|
||||
extract_game_assets.extract("../" + str(iso),yaz0Encoding)
|
||||
os.chdir(previousDir)
|
||||
extract_game_assets.extract(iso.absolute(),gamePath.absolute(),yaz0Encoding)
|
||||
|
||||
print("Copying game files...")
|
||||
if os.path.exists(buildPath / "dolzel2") == False:
|
||||
|
|
|
|||
Loading…
Reference in New Issue