mirror of
https://github.com/isledecomp/LEGOIslandRebuilder.git
synced 2025-02-17 00:20:40 -05:00
implemented disable auto-finish patch
This commit is contained in:
parent
3caf023077
commit
b671c798b6
1 changed files with 7 additions and 0 deletions
|
@ -51,6 +51,13 @@ DWORD WINAPI Patch()
|
|||
SearchReplacePattern(dllBase, "OGEL", "\x0GEL", 4, TRUE);
|
||||
}
|
||||
|
||||
// Disable auto-finish in build sections
|
||||
if (config.GetInt(_T("DisableAutoFinishBuilding"))) {
|
||||
const char *autofinish_pattern = "\x66\x39\x90\xBE\x00\x00\x00\x0F\x85\x86\x00\x00\x00";
|
||||
const char *autofinish_replace = "\x66\x39\x90\xBE\x00\x00\x00\xE9\x87\x00\x00\x00\x90";
|
||||
SearchReplacePattern(dllBase, autofinish_pattern, autofinish_replace, 13);
|
||||
}
|
||||
|
||||
// Patch navigation
|
||||
{
|
||||
const int nav_block_sz = 0x30;
|
||||
|
|
Loading…
Reference in a new issue