diff --git a/src/Components/Modules/Dedicated.cpp b/src/Components/Modules/Dedicated.cpp index 5154121e..c8fa2471 100644 --- a/src/Components/Modules/Dedicated.cpp +++ b/src/Components/Modules/Dedicated.cpp @@ -36,11 +36,8 @@ namespace Components if (Dvar::Var("com_logFilter").get()) { - if (!Flags::HasFlag("stdout")) - { - Utils::Hook::Nop(0x647466, 5); // 'dvar set' lines - Utils::Hook::Nop(0x5DF4F2, 5); // 'sending splash open' lines - } + Utils::Hook::Nop(0x647466, 5); // 'dvar set' lines + Utils::Hook::Nop(0x5DF4F2, 5); // 'sending splash open' lines } Utils::Hook::Call(0x4F84C0)(); diff --git a/src/Components/Modules/ServerCommands.cpp b/src/Components/Modules/ServerCommands.cpp index ce0ace7e..7e999559 100644 --- a/src/Components/Modules/ServerCommands.cpp +++ b/src/Components/Modules/ServerCommands.cpp @@ -62,11 +62,8 @@ namespace Components ServerCommands::ServerCommands() { - if (!Flags::HasFlag("stdout")) - { - // Server command receive hook - Utils::Hook(0x59449F, ServerCommands::OnServerCommandStub).install()->quick(); - } + // Server command receive hook + Utils::Hook(0x59449F, ServerCommands::OnServerCommandStub).install()->quick(); } ServerCommands::~ServerCommands() diff --git a/src/Components/Modules/StructuredData.cpp b/src/Components/Modules/StructuredData.cpp index c67b0f1b..a1661a7e 100644 --- a/src/Components/Modules/StructuredData.cpp +++ b/src/Components/Modules/StructuredData.cpp @@ -146,17 +146,16 @@ namespace Components StructuredData::StructuredData() { + if (Dedicated::IsEnabled()) return; + // Do not execute this when building zones if (!ZoneBuilder::IsEnabled()) { - if (!Flags::HasFlag("stdout")) - { - // Correctly upgrade stats - Utils::Hook(0x42F088, StructuredData::UpdateVersionOffsets, HOOK_CALL).install()->quick(); + // Correctly upgrade stats + Utils::Hook(0x42F088, StructuredData::UpdateVersionOffsets, HOOK_CALL).install()->quick(); - // 15 or more custom classes - Utils::Hook::Set(0x60A2FE, NUM_CUSTOM_CLASSES); - } + // 15 or more custom classes + Utils::Hook::Set(0x60A2FE, NUM_CUSTOM_CLASSES); // Reset empty names Command::Add("checkClasses", [](Command::Params*)