From 6336808d852d8667cce2fb00ac91a6dc97985b3d Mon Sep 17 00:00:00 2001 From: xen Date: Thu, 3 Oct 2024 14:02:36 +0300 Subject: [PATCH] Update HostStateRequest sig --- src/multiaddonmanager.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/multiaddonmanager.cpp b/src/multiaddonmanager.cpp index 6650474..dbc7ceb 100644 --- a/src/multiaddonmanager.cpp +++ b/src/multiaddonmanager.cpp @@ -148,10 +148,11 @@ bool MultiAddonManager::Load(PluginId id, ISmmAPI *ismm, char *error, size_t max CModule engineModule(ROOTBIN, "engine2"); + // "Discarding pending request '%s, %u'\n" #ifdef PLATFORM_WINDOWS - const byte HostStateRequest_Sig[] = "\x48\x89\x74\x24\x10\x57\x48\x83\xEC\x30\x33\xF6\x48\x8B\xFA"; + const byte HostStateRequest_Sig[] = "\x48\x89\x74\x24\x2A\x57\x48\x83\xEC\x2A\x33\xF6\x48\x8B\xFA\x48\x39\x35"; #else - const byte HostStateRequest_Sig[] = "\x55\x48\x89\xE5\x41\x56\x41\x55\x41\x54\x49\x89\xF4\x53\x48\x83\x7F\x30\x00"; + const byte HostStateRequest_Sig[] = "\x55\x48\x89\xE5\x41\x56\x41\x55\x41\x54\x49\x89\xF4\x53\x48\x83\x7F"; #endif int sig_error; @@ -638,7 +639,7 @@ bool MultiAddonManager::Hook_SendNetMessage(CNetMessage *pData, NetChannelBufTyp NetMessageInfo_t *info = pData->GetNetMessage()->GetNetMessageInfo(); // 7 for signon messages - if (info->m_MessageId != 7 || g_MultiAddonManager.m_ExtraAddons.Count() == 0 || !CommandLine()->HasParm("-dedicated")) + if (info->m_MessageId != net_SignonState || g_MultiAddonManager.m_ExtraAddons.Count() == 0 || !CommandLine()->HasParm("-dedicated")) RETURN_META_VALUE(MRES_IGNORED, true); auto pMsg = pData->ToPB();