Skip to content

Instantly share code, notes, and snippets.

@dw5
Forked from kris7t/gist:2850110
Last active April 11, 2020 14:41
Show Gist options
  • Save dw5/a51b81b542eb26228ce64abd1b7b1936 to your computer and use it in GitHub Desktop.
Save dw5/a51b81b542eb26228ce64abd1b7b1936 to your computer and use it in GitHub Desktop.
Patch S.W.I.N.E. v1.9 to support 800x600, 1366x768, 1920x1080, 1920x1200 (loses support for 1024x768, 1280x1024, 1600x1200).
This difference file has been created by IDA Pro
swine.exe
0012F735: 30 33
0012F736: 32 36
0012F737: 34 36
0012F741: 32 39
0012F742: 38 32
0012F747: 32 38
0012F748: 34 30
0012F74D: 36 39
0012F74E: 30 32
001580A4: 00 56
001580A5: 04 05
001580AC: 00 80
001580AD: 05 07
001580B0: 00 38
001580B4: 40 80
001580B5: 06 07
>swine.exe
0012F735:30->33
0012F736:32->36
0012F737:34->36
0012F741:32->39
0012F742:38->32
0012F747:32->38
0012F748:34->30
0012F74D:36->39
0012F74E:30->32
001580A4:00->56
001580A5:04->05
001580AC:00->80
001580AD:05->07
001580B0:00->38
001580B4:40->80
001580B5:06->07
@dw5
Copy link
Author

dw5 commented Apr 11, 2020

E.g 1366x786 it's not the value changing, even a simple breakpoint to those address locations makes game in that resoliution
(no text overwrite, pure behavior related)

005580A4 005580AD 005580B4 005580B5

@dw5
Copy link
Author

dw5 commented Apr 11, 2020

00430B69 (address, push 4150) - for screen value 1 (1024x768)
This is what causes 800x600 window to become bigger into whatever resolution will become....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment