mirror of
https://github.com/SK8-ENGINE/skate-3-rust-engine.git
synced 2026-10-26 19:47:44 +00:00
fix: correct ISO extraction arguments and preserve failure log
This commit is contained in:
1 parent
fe4e7b291a
commit
713fe70b61
1 file changed
+5
-2
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user