Fixed AllPluginsLoaded activities happening before SM is loaded (r=dvander`hom).
This commit is contained in:
parent
6cb67a19e7
commit
c52d7c9126
@ -299,6 +299,12 @@ void SourceModBase::StartSourceMod(bool late)
|
|||||||
g_SourceMod_Core.OnVSPListening(vsp_interface);
|
g_SourceMod_Core.OnVSPListening(vsp_interface);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (late)
|
||||||
|
{
|
||||||
|
/* We missed doing anythin gin this if we late-loaded. Sneak it in now. */
|
||||||
|
AllPluginsLoaded();
|
||||||
|
}
|
||||||
|
|
||||||
/* If we want to autoload, do that now */
|
/* If we want to autoload, do that now */
|
||||||
const char *disabled = GetCoreConfigValue("DisableAutoUpdate");
|
const char *disabled = GetCoreConfigValue("DisableAutoUpdate");
|
||||||
if (disabled == NULL || strcasecmp(disabled, "yes") != 0)
|
if (disabled == NULL || strcasecmp(disabled, "yes") != 0)
|
||||||
@ -637,6 +643,11 @@ IVirtualMachine *SourceModBase::GetScriptingVM()
|
|||||||
|
|
||||||
void SourceModBase::AllPluginsLoaded()
|
void SourceModBase::AllPluginsLoaded()
|
||||||
{
|
{
|
||||||
|
if (!g_Loaded)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
SMGlobalClass *base = SMGlobalClass::head;
|
SMGlobalClass *base = SMGlobalClass::head;
|
||||||
while (base)
|
while (base)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user