mirror of
https://github.com/gurrgur/er-patcher.git
synced 2026-06-13 09:47:54 +00:00
Feat: Updated Ultrawide fix to version 1.04
This commit is contained in:
parent
0ec730fe89
commit
e2f0ab53cf
1 changed files with 2 additions and 2 deletions
|
|
@ -50,9 +50,9 @@ if __name__ == "__main__":
|
|||
print("er-patcher: fix_camera pattern scan failed")
|
||||
|
||||
if patch.ultrawide or patch.all:
|
||||
uw_pattern = "8b 01 85 c0 74 42 44 8b 59 04".replace(" ", "")
|
||||
uw_pattern = "74 50 .. 8b .. .. dc 03 00 00 .. 85 .. 74 .. .. 8b .. .. 0f af".replace(" ", "")
|
||||
if (res := re.search(uw_pattern, exe_hex)) is not None:
|
||||
uw_addr = res.span()[0] + 8
|
||||
uw_addr = res.span()[0]
|
||||
uw_patch = "eb"
|
||||
exe_hex = exe_hex[:uw_addr] + uw_patch + exe_hex[uw_addr + len(uw_patch):]
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue