mirror of
https://github.com/alliedmodders/metamod-source.git
synced 2025-12-06 18:08:31 +00:00
Now compiles against hl2sdk-l4d as-is as well as the OB SDK still
Replaced block of code that searched for a command using ICvar::GetCommands() for enumeration. Now uses ICvar::FindCommand which exists in both SDKs.
This commit is contained in:
parent
03db50adbd
commit
23c82ec9ae
@ -213,16 +213,7 @@ bool VSPListener::Load(CreateInterfaceFn interfaceFactory, CreateInterfaceFn gam
|
|||||||
InitializeGlobals(interfaceFactory, interfaceFactory, interfaceFactory, pGlobals);
|
InitializeGlobals(interfaceFactory, interfaceFactory, interfaceFactory, pGlobals);
|
||||||
StartupMetamod(true);
|
StartupMetamod(true);
|
||||||
|
|
||||||
const ConCommandBase *pBase = icvar->GetCommands();
|
g_plugin_unload = icvar->FindCommand("plugin_unload");
|
||||||
while (pBase != NULL)
|
|
||||||
{
|
|
||||||
if (pBase->IsCommand() && strcmp(pBase->GetName(), "plugin_unload") == 0)
|
|
||||||
{
|
|
||||||
g_plugin_unload = (ConCommand *)pBase;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
pBase = pBase->GetNext();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (g_plugin_unload != NULL)
|
if (g_plugin_unload != NULL)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user