Fixed AllPluginsLoaded activities happening before SM is loaded (r=dvander`hom).

This commit is contained in:
Nicholas Hastings 2013-04-03 12:25:54 -04:00
parent 6cb67a19e7
commit c52d7c9126

View File

@ -299,6 +299,12 @@ void SourceModBase::StartSourceMod(bool late)
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 */
const char *disabled = GetCoreConfigValue("DisableAutoUpdate");
if (disabled == NULL || strcasecmp(disabled, "yes") != 0)
@ -637,6 +643,11 @@ IVirtualMachine *SourceModBase::GetScriptingVM()
void SourceModBase::AllPluginsLoaded()
{
if (!g_Loaded)
{
return;
}
SMGlobalClass *base = SMGlobalClass::head;
while (base)
{