mirror of
https://github.com/gurrgur/er-patcher.git
synced 2026-06-13 09:47:54 +00:00
Merge pull request #59 from gurrgur/python-3-9-regression-fix
fix regression on python 3.9
This commit is contained in:
commit
e8be93b2e2
1 changed files with 4 additions and 1 deletions
|
|
@ -134,7 +134,10 @@ if __name__ == "__main__":
|
||||||
if f.name in ["eldenring.exe", "er-patcher"]:
|
if f.name in ["eldenring.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)
|
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
|
# start patched exe directly to avoid EAC
|
||||||
steam_cmd = sys.argv[1 + sys.argv.index("--"):]
|
steam_cmd = sys.argv[1 + sys.argv.index("--"):]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue