feature: add intro skip patch

This commit is contained in:
Marcus Gursch 2022-03-23 12:00:01 +01:00
parent 635a80b64b
commit 7f00e876a5
2 changed files with 8 additions and 0 deletions

View file

@ -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%`

View file

@ -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)
@ -58,6 +59,12 @@ if __name__ == "__main__":
"e82b309c010f28f80f28c6e820359c01f30f5ef80f28cff3410f5e4c2454",
"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(