use old hard link api for python 3.8 compatibility

This commit is contained in:
Marcus Gursch 2022-03-25 20:47:52 +01:00
parent 62cb574ced
commit a531256c0a

View file

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