fix: correct ISO extraction arguments and preserve failure log

This commit is contained in:
Ethanw05 committed 2026-10-02 05:40:20 -06:00
1 parent fe4e7b291a
commit 713fe70b61
1 file changed
+5 -2
+5 -2
View File
@@ -174,8 +174,11 @@ def install(iso, base, game_exe, report, refresh=False):
if not selected.is_file():raise RuntimeError('Select an existing Skate 3 Xbox 360 ISO')
source = Path(temp)/'disc'
extractor = core.dependency(base/'tools', 'extract-xiso', core.XISO_URL, core.XISO_SHA, report)
with (Path(temp)/'extract.log').open('w') as log:
core.run([extractor, '-x', selected, '-d', source], log, report)
# Keep the log outside the temporary source directory so a failed
# extraction does not delete the file named in the error message.
base.mkdir(parents=True, exist_ok=True)
with (base/'extract.log').open('w', encoding='utf-8') as log:
core.run([extractor, '-x', '-d', source, selected], log, report)
else:
source = source_directory(selected, require_core=not refresh)
stage = core._install(iso, base, game_exe, report, game_root=source, refresh=refresh,