Skip to content

Commit f48216f

Browse files
committed
Adjust one pattern to work on battlenet version
1 parent 5b7db9f commit f48216f

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/main.cpp

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,14 @@ void OnInitializeHook() {
4545
try {
4646
using namespace WidescreenFix;
4747

48-
auto resPattern = pattern ("48 8B 05 ? ? ? ? 89 41 18"); // 0x1415AF1DC
49-
ReadOffsetValue(resPattern.get_first(3), pWidth);
48+
auto resPattern = pattern ("C7 41 68 00 00 48 8B 05"); // 0x1415AF1DC
49+
ReadOffsetValue(resPattern.get_first(8), pWidth);
5050
pHeight = pWidth + 1;
51+
}
52+
TXN_CATCH();
53+
54+
try {
55+
using namespace WidescreenFix;
5156

5257
auto cameraPattern = pattern ("F3 0F 11 47 18 8B 83 00 02 00 00"); // 0x141E6C84F
5358

0 commit comments

Comments
 (0)