diff --git a/src/Components/Modules/Command.cpp b/src/Components/Modules/Command.cpp index 4e5e99b8..83dbd377 100644 --- a/src/Components/Modules/Command.cpp +++ b/src/Components/Modules/Command.cpp @@ -168,17 +168,4 @@ namespace Components got->second(¶ms); } } - - Command::Command() - { - AssertSize(Game::cmd_function_t, 24); - - Command::Add("openLink", [](Command::Params* params) - { - if (params->size() > 1) - { - Utils::OpenUrl(params->get(1)); - } - }); - } } diff --git a/src/Components/Modules/Command.hpp b/src/Components/Modules/Command.hpp index ce949cc2..45dd9c0f 100644 --- a/src/Components/Modules/Command.hpp +++ b/src/Components/Modules/Command.hpp @@ -5,6 +5,8 @@ namespace Components class Command : public Component { public: + static_assert(sizeof(Game::cmd_function_t) == 0x18); + class Params { public: @@ -45,7 +47,7 @@ namespace Components int nesting_; }; - Command(); + Command() = default; static Game::cmd_function_t* Allocate(); diff --git a/src/Components/Modules/QuickPatch.cpp b/src/Components/Modules/QuickPatch.cpp index c05eac23..8cb95b53 100644 --- a/src/Components/Modules/QuickPatch.cpp +++ b/src/Components/Modules/QuickPatch.cpp @@ -231,15 +231,6 @@ namespace Components QuickPatch::QuickPatch() { - // quitHard - Command::Add("quitHard", [](Command::Params*) - { - int data = false; - const Utils::Library ntdll("ntdll.dll"); - ntdll.invokePascal("RtlAdjustPrivilege", 19, true, false, &data); - ntdll.invokePascal("NtRaiseHardError", 0xC000007B, 0, nullptr, nullptr, 6, &data); - }); - // Filtering any mapents that is intended for Spec:Ops gamemode (CODO) and prevent them from spawning Utils::Hook(0x5FBD6E, QuickPatch::IsDynClassnameStub, HOOK_CALL).install()->quick();