Skip to content

Commit

Permalink
Merge pull request #59 from gurrgur/python-3-9-regression-fix
Browse files Browse the repository at this point in the history
fix regression on python 3.9
  • Loading branch information
gurrgur authored Jan 12, 2024
2 parents a82a9d6 + 98cf4ae commit e8be93b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion er-patcher
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,10 @@ if __name__ == "__main__":
if f.name in ["eldenring.exe", "er-patcher"]:
continue
if not (game_dir_patched / f).is_file():
(game_dir_patched / f).hardlink_to(f)
if sys.version_info.minor >= 10:
(game_dir_patched / f).hardlink_to(f)
else:
f.link_to(game_dir_patched / f)

# start patched exe directly to avoid EAC
steam_cmd = sys.argv[1 + sys.argv.index("--"):]
Expand Down

0 comments on commit e8be93b

Please sign in to comment.