We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c71e483 commit b25d6dcCopy full SHA for b25d6dc
cod4qol/game.cpp
@@ -477,20 +477,20 @@ __declspec(naked) void game::hookedConsole_Key()
477
{
478
const static uint32_t retn_addr = 0x467534;
479
480
- __asm
481
- {
482
- //pushad;
483
-
484
- /*mov eax, enabled;
485
- test eax, eax;
486
- jz original;*/
+ __asm pushad;
487
488
- //popad;
489
- jmp retn_addr;
+ if(commands::qol_disableslashcommands->current.enabled)
+ __asm
+ {
+ popad;
+ jmp retn_addr;
+ }
490
491
- /*original:
+ original:
492
popad;
493
- jmp game::pConsole_Key;*/
+ jmp game::pConsole_Key;
494
}
495
496
0 commit comments