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