mirror of
https://github.com/gurrgur/er-patcher.git
synced 2026-06-13 09:47:54 +00:00
feature: add intro skip patch
This commit is contained in:
parent
635a80b64b
commit
7f00e876a5
2 changed files with 8 additions and 0 deletions
|
|
@ -29,6 +29,7 @@ A tool aimed at enhancing the experience when playing the game on linux through
|
|||
- `-v` or `--disable-vigniette` for removing the vigniette overlay
|
||||
- `-c` or `--disable-ca` for disabling chromatic abberation
|
||||
- `-a` or `--increase-animation-distance` for fixing low frame rate animations at screen edges or for distant entities.
|
||||
- `-s` or `--skip-intro` for skipping intro logos when the game starts
|
||||
- `-f` or `--remove-60hz-fullscreen` for removing the 60Hz limit in fullscreen mode (only applies to windows and has no effect when running the game through proton due to fshack)
|
||||
- Example: `./er-patcher --rate 30 -uavc -- %command%`
|
||||
- Example with mangohud and wine fullscreen fsr: `./er-patcher --rate 144 -uvca -- env WINE_FULLSCREEN_FSR=1 MANGOHUD=1 MANGOHUD_CONFIG=histogram %command%`
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@ if __name__ == "__main__":
|
|||
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("-s", "--skip-intro", action='store_true', help="Skip intro logos.")
|
||||
parser.add_argument("-f", "--remove-60hz-fullscreen", action='store_true', help="Remove 60hz lock in fullscreen.")
|
||||
patch = parser.parse_args(patcher_args)
|
||||
|
||||
|
|
@ -59,6 +60,12 @@ if __name__ == "__main__":
|
|||
"e82b309c010f28f80f28c6e820359c01f30f5ef80f28cf0f57c9660fefc9"
|
||||
)
|
||||
|
||||
if patch.skip_intro:
|
||||
exe_hex = exe_hex.replace(
|
||||
"80 bf b8 00 00 00 00 74 53 48".replace(" ", ""),
|
||||
"80 bf b8 00 00 00 00 90 90 48".replace(" ", "")
|
||||
)
|
||||
|
||||
if patch.remove_60hz_fullscreen:
|
||||
exe_hex = exe_hex.replace(
|
||||
"c745ef3c000000",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue