Skip to content

Commit 7f2f4d1

Browse files
authored
Merge pull request #69 from OpenGOAL-Mods/revert-65-test-remove-symlink
Revert "remove symlink stuff to test"
2 parents af2e553 + 3647ee1 commit 7f2f4d1

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

utils/launcherUtils.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -496,10 +496,10 @@ def rebuild(URL, MOD_ID, MOD_NAME, LINK_TYPE, GAME, should_extract):
496496
print("Found in " + UniversalIsoPath +"/" + GAME + "/" + "Z6TAIL.DUP")
497497
iso_path = UniversalIsoPath + "/" + GAME
498498

499-
# if not is_junction(InstallDir + "/data/iso_data"):
500-
# # we have iso extracted to universal folder already, just symlink it. otherwise we'll copy it there and symlink after extractor closes
501-
# try_remove_dir(InstallDir + "/data/iso_data/")
502-
# makeDirSymlink(InstallDir + "/data/iso_data/", UniversalIsoPath)
499+
if not is_junction(InstallDir + "/data/iso_data"):
500+
# we have iso extracted to universal folder already, just symlink it. otherwise we'll copy it there and symlink after extractor closes
501+
try_remove_dir(InstallDir + "/data/iso_data/")
502+
makeDirSymlink(InstallDir + "/data/iso_data/", UniversalIsoPath)
503503
else:
504504
print("We did not find " + GAME + " ISO data from a previous mod, lets ask for some!")
505505

@@ -562,9 +562,9 @@ def rebuild(URL, MOD_ID, MOD_NAME, LINK_TYPE, GAME, should_extract):
562562
if not found_universal_iso:
563563
ensure_jak_folders_exist()
564564
moveDirContents(InstallDir + "/data/iso_data/" + GAME, UniversalIsoPath + "/" + GAME)
565-
# # replace iso_data with symlink
566-
# try_remove_dir(InstallDir + "/data/iso_data/")
567-
# makeDirSymlink(InstallDir + "/data/iso_data", UniversalIsoPath)
565+
# replace iso_data with symlink
566+
try_remove_dir(InstallDir + "/data/iso_data/")
567+
makeDirSymlink(InstallDir + "/data/iso_data", UniversalIsoPath)
568568

569569
print("Done extracting! Launching game!")
570570

0 commit comments

Comments
 (0)