[Dedicated] Removed hooks which failed in wine
This commit is contained in:
parent
a6abc8fe72
commit
ab6cca65f9
@ -36,8 +36,11 @@ namespace Components
|
|||||||
|
|
||||||
if (Dvar::Var("com_logFilter").get<bool>())
|
if (Dvar::Var("com_logFilter").get<bool>())
|
||||||
{
|
{
|
||||||
Utils::Hook::Nop(0x647466, 5); // 'dvar set' lines
|
if (!Flags::HasFlag("stdout"))
|
||||||
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<void()>(0x4F84C0)();
|
Utils::Hook::Call<void()>(0x4F84C0)();
|
||||||
|
@ -62,8 +62,11 @@ namespace Components
|
|||||||
|
|
||||||
ServerCommands::ServerCommands()
|
ServerCommands::ServerCommands()
|
||||||
{
|
{
|
||||||
// Server command receive hook
|
if (!Flags::HasFlag("stdout"))
|
||||||
Utils::Hook(0x59449F, ServerCommands::OnServerCommandStub).install()->quick();
|
{
|
||||||
|
// Server command receive hook
|
||||||
|
Utils::Hook(0x59449F, ServerCommands::OnServerCommandStub).install()->quick();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ServerCommands::~ServerCommands()
|
ServerCommands::~ServerCommands()
|
||||||
|
@ -146,14 +146,17 @@ namespace Components
|
|||||||
|
|
||||||
StructuredData::StructuredData()
|
StructuredData::StructuredData()
|
||||||
{
|
{
|
||||||
// Only execute this when building zones
|
// Do not execute this when building zones
|
||||||
if (!ZoneBuilder::IsEnabled())
|
if (!ZoneBuilder::IsEnabled())
|
||||||
{
|
{
|
||||||
// Correctly upgrade stats
|
if (!Flags::HasFlag("stdout"))
|
||||||
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
|
// 15 or more custom classes
|
||||||
Utils::Hook::Set<BYTE>(0x60A2FE, NUM_CUSTOM_CLASSES);
|
Utils::Hook::Set<BYTE>(0x60A2FE, NUM_CUSTOM_CLASSES);
|
||||||
|
}
|
||||||
|
|
||||||
// Reset empty names
|
// Reset empty names
|
||||||
Command::Add("checkClasses", [](Command::Params*)
|
Command::Add("checkClasses", [](Command::Params*)
|
||||||
|
Loading…
Reference in New Issue
Block a user