Added logged error when PlayerRunCommand offset lookup fails (bug 5535, r=psychonic).
This commit is contained in:
parent
b0304a89a6
commit
f52ea98eb4
@ -53,7 +53,12 @@ void CHookManager::Initialize()
|
|||||||
SH_MANUALHOOK_RECONFIGURE(PlayerRunCmdHook, offset, 0, 0);
|
SH_MANUALHOOK_RECONFIGURE(PlayerRunCmdHook, offset, 0, 0);
|
||||||
PRCH_enabled = true;
|
PRCH_enabled = true;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
g_pSM->LogError(myself, "Failed to find PlayerRunCmd offset - OnPlayerRunCmd forward disabled.");
|
||||||
|
PRCH_enabled = false;
|
||||||
|
}
|
||||||
|
|
||||||
plsys->AddPluginsListener(this);
|
plsys->AddPluginsListener(this);
|
||||||
sharesys->AddCapabilityProvider(myself, this, FEATURECAP_PLAYERRUNCMD_11PARAMS);
|
sharesys->AddCapabilityProvider(myself, this, FEATURECAP_PLAYERRUNCMD_11PARAMS);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user