Skip to content

Commit

Permalink
Merge pull request #69 from OpenGOAL-Mods/revert-65-test-remove-symlink
Browse files Browse the repository at this point in the history
Revert "remove symlink stuff to test"
  • Loading branch information
dallmeyer authored May 24, 2024
2 parents af2e553 + 3647ee1 commit 7f2f4d1
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions utils/launcherUtils.py
Original file line number Diff line number Diff line change
Expand Up @@ -496,10 +496,10 @@ def rebuild(URL, MOD_ID, MOD_NAME, LINK_TYPE, GAME, should_extract):
print("Found in " + UniversalIsoPath +"/" + GAME + "/" + "Z6TAIL.DUP")
iso_path = UniversalIsoPath + "/" + GAME

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

Expand Down Expand Up @@ -562,9 +562,9 @@ def rebuild(URL, MOD_ID, MOD_NAME, LINK_TYPE, GAME, should_extract):
if not found_universal_iso:
ensure_jak_folders_exist()
moveDirContents(InstallDir + "/data/iso_data/" + GAME, UniversalIsoPath + "/" + GAME)
# # replace iso_data with symlink
# try_remove_dir(InstallDir + "/data/iso_data/")
# makeDirSymlink(InstallDir + "/data/iso_data", UniversalIsoPath)
# replace iso_data with symlink
try_remove_dir(InstallDir + "/data/iso_data/")
makeDirSymlink(InstallDir + "/data/iso_data", UniversalIsoPath)

print("Done extracting! Launching game!")

Expand Down

0 comments on commit 7f2f4d1

Please sign in to comment.