mirror of
https://github.com/alicealys/t5-gsc-utils.git
synced 2025-08-30 05:13:17 +00:00
fix #23
This commit is contained in:
@@ -11,6 +11,7 @@
|
|||||||
#include <utils/string.hpp>
|
#include <utils/string.hpp>
|
||||||
#include <utils/memory.hpp>
|
#include <utils/memory.hpp>
|
||||||
#include <utils/hook.hpp>
|
#include <utils/hook.hpp>
|
||||||
|
#include <utils/flags.hpp>
|
||||||
|
|
||||||
namespace command
|
namespace command
|
||||||
{
|
{
|
||||||
@@ -270,7 +271,11 @@ namespace command
|
|||||||
void on_startup([[maybe_unused]] plugin::plugin* plugin) override
|
void on_startup([[maybe_unused]] plugin::plugin* plugin) override
|
||||||
{
|
{
|
||||||
scripting::on_shutdown(clear);
|
scripting::on_shutdown(clear);
|
||||||
|
|
||||||
|
if (!utils::flags::has_flag("disable-client-command"))
|
||||||
|
{
|
||||||
client_command_hook.create(SELECT_VALUE(0x4AF770, 0x63DB70), client_command_stub);
|
client_command_hook.create(SELECT_VALUE(0x4AF770, 0x63DB70), client_command_stub);
|
||||||
|
}
|
||||||
|
|
||||||
gsc::function::add_multiple([](const std::string& command)
|
gsc::function::add_multiple([](const std::string& command)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user