Parse command line

This commit is contained in:
Federico Cecchetto 2022-05-22 01:52:00 +02:00
parent df3fdb7991
commit c29b190ab6
2 changed files with 12 additions and 2 deletions

View File

@ -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();

View File

@ -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);