Skip to content

Commit

Permalink
Feat: Updated Ultrawide fix to version 1.04
Browse files Browse the repository at this point in the history
  • Loading branch information
joao-pedro-braz committed Apr 21, 2022
1 parent 0ec730f commit e2f0ab5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions er-patcher
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit e2f0ab5

Please sign in to comment.