Skip to content

Commit 585fe11

Browse files
committed
fix for updated version
- fixes #1 - fixes #2
1 parent 7d94628 commit 585fe11

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

.github/workflows/msvc_x86.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88

99
jobs:
1010
build:
11-
runs-on: windows-2019
11+
runs-on: windows-2022
1212
strategy:
1313
matrix:
1414
platform: [Win32]
@@ -22,7 +22,7 @@ jobs:
2222
submodules: 'true'
2323
- name: Configure build
2424
run: |
25-
./premake5 vs2019
25+
./premake5 vs2022
2626
- name: Build
2727
run: |
2828
msbuild -m build/MaxPayne3.FusionFix.sln /property:Configuration=${{matrix.buildtype}} /property:Platform=${{matrix.platform}}

premake5.bat

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
premake5 vs2019
1+
premake5 vs2022

premake5.exe

35 KB
Binary file not shown.

source/dllmain.cpp

+4-3
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,10 @@ void Init()
2626

2727
if (bHideSkipButton)
2828
{
29-
auto pattern = hook::pattern("8B C8 89 86 ? ? ? ? E8 ? ? ? ? D9 EE 8B 86 ? ? ? ? 8B 38 83 EC 08");
30-
injector::MakeNOP(pattern.count(22).get(0).get<void>(8), 5, true);
31-
injector::MakeNOP(pattern.count(22).get(3).get<void>(8), 5, true);
29+
auto pattern = hook::pattern("8B C8 89 86 ? ? ? ? E8 ? ? ? ? D9 EE 8B 86 ? ? ? ? 8B 38 83 EC 08 D9 54 24 04 8D 4C 24 3C D9 1C 24 E8 ? ? ? ? F3 0F 7E 00 8B 97 ? ? ? ? 83 EC 18 8B CC 66 0F D6 01 F3 0F 7E 40 ? 66 0F D6 41 ? F3 0F 7E 40 ? 6A 18 68");
30+
injector::MakeNOP(pattern.get_first(8), 5, true);
31+
pattern = hook::pattern("8B C8 89 86 ? ? ? ? E8 ? ? ? ? D9 EE 8B 86 ? ? ? ? 8B 38 83 EC 08 D9 54 24 04 8D 4C 24 20 D9 1C 24 E8 ? ? ? ? F3 0F 7E 00 8B 97 ? ? ? ? 83 EC 18 8B CC 66 0F D6 01 F3 0F 7E 40 ? 66 0F D6 41 ? F3 0F 7E 40 ? 6A 18 68 ? ? ? ? 66 0F D6 41 ? 8B 8E ? ? ? ? 6A 18");
32+
injector::MakeNOP(pattern.get_first(8), 5, true);
3233
}
3334

3435
if (fOutlinesSizeMultiplier)

0 commit comments

Comments
 (0)