diff --git a/src/client/component/command.cpp b/src/client/component/command.cpp index 90c06bca..0d7599fe 100644 --- a/src/client/component/command.cpp +++ b/src/client/component/command.cpp @@ -507,7 +507,7 @@ namespace command } else { - // parse_commandline_hook.create(0x157D50_b, parse_commandline_stub); + parse_commandline_hook.create(0x157D50_b, parse_commandline_stub); utils::hook::jump(0x4E9F40_b, dvar_command_stub, true); add_commands_mp(); diff --git a/src/client/component/dedicated.cpp b/src/client/component/dedicated.cpp index bb4dda0b..98cb477b 100644 --- a/src/client/component/dedicated.cpp +++ b/src/client/component/dedicated.cpp @@ -226,7 +226,17 @@ namespace dedicated utils::hook::jump(0x135600_b, init_dedicated_server, true); // delay startup commands until the initialization is done - // utils::hook::call(0x157DDA_b, execute_startup_command); + utils::hook::jump(0x157DD3_b, utils::hook::assemble([](utils::hook::assembler& a) + { + a.lea(r8, qword_ptr(rsp, 0x20)); + a.xor_(ecx, ecx); + + a.pushad64(); + a.call_aligned(execute_startup_command); + a.popad64(); + + a.jmp(0x157DDF_b); + }), true);// // delay console commands until the initialization is done // COULDN'T FOUND // utils::hook::call(0x1400D808C, execute_console_command);