mirror of
https://github.com/gurrgur/er-patcher.git
synced 2026-06-13 09:47:54 +00:00
support Python 3.8.10:
replace argparse.BooleanOptionalAction as it requires python 3.9, ubuntu 20.04 lts based distros are still stuck on Python 3.8.xx
This commit is contained in:
parent
5de03c9d58
commit
ef7ffd2dd2
1 changed files with 6 additions and 5 deletions
11
er-patcher
11
er-patcher
|
|
@ -15,11 +15,11 @@ if __name__ == "__main__":
|
|||
|
||||
parser = argparse.ArgumentParser(description="Patch Elden Ring executable and launch it without EAC.")
|
||||
parser.add_argument("-r", "--rate", type=int, default=60, help="Modify the frame rate limit (e.g. 30, 120, 165 or whatever).")
|
||||
parser.add_argument("-u", "--ultrawide", action=argparse.BooleanOptionalAction, help="Removes black bars when using a resolution with an aspect ratio other than 16:9.")
|
||||
parser.add_argument("-v", "--disable-vigniette", action=argparse.BooleanOptionalAction, help="Disables the vigniette overlay.")
|
||||
parser.add_argument("-c", "--disable-ca", action=argparse.BooleanOptionalAction, help="Disables chromatic abberation.")
|
||||
parser.add_argument("-a", "--increase-animation-distance", action=argparse.BooleanOptionalAction, help="Increase animation distance.")
|
||||
parser.add_argument("-f", "--remove-60hz-fullscreen", action=argparse.BooleanOptionalAction, help="Remove 60hz lock in fullscreen.")
|
||||
parser.add_argument("-u", "--ultrawide", action='store_true', help="Removes black bars when using a resolution with an aspect ratio other than 16:9.")
|
||||
parser.add_argument("-v", "--disable-vigniette", action='store_true', help="Disables the vigniette overlay.")
|
||||
parser.add_argument("-c", "--disable-ca", action='store_true', help="Disables chromatic abberation.")
|
||||
parser.add_argument("-a", "--increase-animation-distance", action='store_true', help="Increase animation distance.")
|
||||
parser.add_argument("-f", "--remove-60hz-fullscreen", action='store_true', help="Remove 60hz lock in fullscreen.")
|
||||
patch = parser.parse_args(patcher_args)
|
||||
|
||||
exe_name = Path("eldenring.exe")
|
||||
|
|
@ -81,3 +81,4 @@ if __name__ == "__main__":
|
|||
|
||||
os.remove(patched_exe_dir / exe_name)
|
||||
os.rmdir(patched_exe_dir)
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue