Merge pull request #56 from gurrgur/python-3-12-compat

Adapt to python 3.12 changes
This commit is contained in:
gurrgur 2023-12-23 14:32:43 +01:00 committed by GitHub
commit a82a9d6e01
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -134,7 +134,7 @@ if __name__ == "__main__":
if f.name in ["eldenring.exe", "er-patcher"]:
continue
if not (game_dir_patched / f).is_file():
f.link_to(game_dir_patched / f)
(game_dir_patched / f).hardlink_to(f)
# start patched exe directly to avoid EAC
steam_cmd = sys.argv[1 + sys.argv.index("--"):]