mirror of
https://github.com/isledecomp/LEGOIslandRebuilder.git
synced 2024-11-23 07:38:02 -05:00
lib: only switch debug keys when wasd is enabled
This commit is contained in:
parent
2321dd0ab0
commit
a378999790
1 changed files with 1 additions and 1 deletions
|
@ -70,7 +70,7 @@ __declspec(dllexport) DWORD WINAPI Patch()
|
|||
}
|
||||
|
||||
// If using WASD, swap debug keys
|
||||
{
|
||||
if (config.GetInt(_T("UseWASD"))) {
|
||||
const char *dbg_map_pattern = "\x18\x18\x18\x18\x18\x18\x18\x18\x18\x18\x18\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x18\x18\x18\x18\x18\x18\x18\x02\x18\x03\x04\x18\x05\x06\x07\x08\x09\x0A\x0B\x0C\x0D\x18\x0E\x18\x18\x0F\x18";
|
||||
const char *dbg_map_replace = "\x02\x18\x04\x0F\x18\x18\x18\x18\x18\x18\x18\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x18\x18\x18\x18\x18\x18\x18\x18\x18\x03\x18\x18\x05\x06\x07\x08\x09\x0A\x0B\x0C\x0D\x18\x0E\x18\x18\x18\x18";
|
||||
SearchReplacePattern(dllBase, dbg_map_pattern, dbg_map_replace, 48, TRUE);
|
||||
|
|
Loading…
Reference in a new issue