mirror of
https://github.com/gurrgur/er-patcher.git
synced 2026-06-13 09:47:54 +00:00
Add disable camera reset
This commit is contained in:
parent
98aa86767c
commit
8c4d094da1
2 changed files with 15 additions and 3 deletions
|
|
@ -50,6 +50,7 @@ Note: There might be some distros (e.g. older Ubuntu releases) that launch pytho
|
|||
| `-a` or `--increase-animation-distance` | Fix low frame rate animations at screen<br>edges or for distant entities. |
|
||||
| `-s` or `--skip-intro` | Skip intro logos at game start. |
|
||||
| `-f` or `--remove-60hz-fullscreen` | Remove the 60Hz limit in fullscreen<br>mode (not needed with proton). |
|
||||
| `--disable-camera-reset` | Disable camera reset on target lock input when no target in frame. |
|
||||
|
||||
|
||||
## Windows Support
|
||||
|
|
@ -77,3 +78,4 @@ When the game is launched through steam, the tool creates a patched version of `
|
|||
- [DarkSouls3RemoveIntroScreens](https://github.com/bladecoding/DarkSouls3RemoveIntroScreens): intro logo skip
|
||||
- [EldenRingMods](https://github.com/techiew/EldenRingMods) + [EldenRingFpsUnlockAndMore](https://github.com/uberhalit/EldenRingFpsUnlockAndMore)
|
||||
- disable rune loss
|
||||
- disable camera reset
|
||||
|
|
|
|||
10
er-patcher
10
er-patcher
|
|
@ -42,6 +42,7 @@ if __name__ == "__main__":
|
|||
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.")
|
||||
parser.add_argument("--disable-camera-reset", action='store_true', help="Disable camera reset.")
|
||||
patch = parser.parse_args(patcher_args)
|
||||
|
||||
if patch.with_eac and patch.executable != "eldenring.exe":
|
||||
|
|
@ -130,6 +131,15 @@ if __name__ == "__main__":
|
|||
else:
|
||||
print("er-patcher: remove_60hz_fullscreen pattern scan failed")
|
||||
|
||||
if patch.disable_camera_reset:
|
||||
cr_pattern = "80 .. .. .. .. .. 00 74 .. .. 8b .. e8 .. .. .. .. eb .. 0f 28 .. .. .. .. .. .. 8d".replace(" ", "")
|
||||
if (res := re.search(cr_pattern, exe_hex)) is not None:
|
||||
cr_addr = res.span()[0] + 14
|
||||
cr_patch = "eb"
|
||||
exe_hex = exe_hex[:cr_addr] + cr_patch + exe_hex[cr_addr + len(cr_patch):]
|
||||
else:
|
||||
print("er-patcher: camera reset pattern scan failed")
|
||||
|
||||
game_dir_patched = Path("er-patcher-tmp")
|
||||
|
||||
# make sure a fresh directory is used
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue