From fd41dce8390fba4d9f391bebe4dabbc22ab77469 Mon Sep 17 00:00:00 2001 From: KionX <> Date: Thu, 15 Dec 2022 15:29:59 +0500 Subject: [PATCH] Fix 4GB --- README.md | 2 ++ hooks/HFix4GB.cpp | 14 ++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 hooks/HFix4GB.cpp diff --git a/README.md b/README.md index c9352042..48c39248 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,8 @@ This are just the patch files for this game. I decided to separate them from pat # Change List ## Fixes +- Allows to use 4GB on x64 + - hooks/HFix4GB.cpp - Reduce call sim beat of UI - hooks/HUIReduceCallSimBeat.cpp - Removing CTRL formations diff --git a/hooks/HFix4GB.cpp b/hooks/HFix4GB.cpp new file mode 100644 index 00000000..5c151181 --- /dev/null +++ b/hooks/HFix4GB.cpp @@ -0,0 +1,14 @@ +asm( + ".section h0; .set h0,0x957E35;" + "PUSH 0x3FF000;" + + ".section h1; .set h1,0x915A92;" + "ADD EAX,EAX;" + "JGE .+0x73;" + "MOV EAX,DWORD PTR DS:[ESI+0x2C];" + "ADD EAX,0x10000000;" + "JMP .+0x69;" + + ".section h2; .set h2,0x915B05;" + "JMP .-0x73;" +); \ No newline at end of file