Skip to content

Commit

Permalink
fix for updated version
Browse files Browse the repository at this point in the history
- fixes #1
- fixes #2
  • Loading branch information
ThirteenAG committed Nov 18, 2021
1 parent 7d94628 commit 585fe11
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/msvc_x86.yml
Expand Up @@ -8,7 +8,7 @@ on:

jobs:
build:
runs-on: windows-2019
runs-on: windows-2022
strategy:
matrix:
platform: [Win32]
Expand All @@ -22,7 +22,7 @@ jobs:
submodules: 'true'
- name: Configure build
run: |
./premake5 vs2019
./premake5 vs2022
- name: Build
run: |
msbuild -m build/MaxPayne3.FusionFix.sln /property:Configuration=${{matrix.buildtype}} /property:Platform=${{matrix.platform}}
Expand Down
2 changes: 1 addition & 1 deletion premake5.bat
@@ -1 +1 @@
premake5 vs2019
premake5 vs2022
Binary file modified premake5.exe
Binary file not shown.
7 changes: 4 additions & 3 deletions source/dllmain.cpp
Expand Up @@ -26,9 +26,10 @@ void Init()

if (bHideSkipButton)
{
auto pattern = hook::pattern("8B C8 89 86 ? ? ? ? E8 ? ? ? ? D9 EE 8B 86 ? ? ? ? 8B 38 83 EC 08");
injector::MakeNOP(pattern.count(22).get(0).get<void>(8), 5, true);
injector::MakeNOP(pattern.count(22).get(3).get<void>(8), 5, true);
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");
injector::MakeNOP(pattern.get_first(8), 5, true);
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");
injector::MakeNOP(pattern.get_first(8), 5, true);
}

if (fOutlinesSizeMultiplier)
Expand Down

0 comments on commit 585fe11

Please sign in to comment.