Fix Build Scripts (#1879)

This commit is contained in:
jdflyer 2023-08-13 17:46:24 -07:00 committed by GitHub
parent 91d04c794d
commit 7e8fd320bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 5 deletions

View File

@ -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)

View File

@ -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: