diff --git a/src/client/component/command.cpp b/src/client/component/command.cpp index ed231537..0dab242c 100644 --- a/src/client/component/command.cpp +++ b/src/client/component/command.cpp @@ -305,7 +305,7 @@ namespace command private: static void add_commands_generic() { - add("quit", game::Com_Quit_f); + add("quit", game::Quit); //add("quit_hard", utils::nt::raise_hard_exception); /* this command delivers you to a windows blue screen, its quit hard from windows xD */ add("crash", []() { diff --git a/src/client/game/symbols.hpp b/src/client/game/symbols.hpp index abed3d9e..0312bd57 100644 --- a/src/client/game/symbols.hpp +++ b/src/client/game/symbols.hpp @@ -29,6 +29,7 @@ namespace game WEAK symbol Com_SetSlowMotion{0, 0x1400DB790}; WEAK symbol Com_Error{0x1403509C0, 0x1400D78A0}; WEAK symbol Com_Quit_f{0x140352BE0, 0x1400DA830}; + WEAK symbol Quit{0x140352D90, 0x1400DA830}; WEAK symbol CG_GameMessage{0x1401389A0, 0x140220CC0}; WEAK symbol CG_GameMessageBold{0x140138750, 0x140220620};