Skip to content

Commit

Permalink
Fix 4GB
Browse files Browse the repository at this point in the history
  • Loading branch information
KionX committed Dec 15, 2022
1 parent 9c9dda3 commit fd41dce
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
14 changes: 14 additions & 0 deletions hooks/HFix4GB.cpp
Original file line number Diff line number Diff line change
@@ -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;"
);

0 comments on commit fd41dce

Please sign in to comment.