mirror of
https://github.com/rehlds/metamod-r.git
synced 2025-04-28 07:49:39 +03:00
Rebuild callbacks after subplugins load
This commit is contained in:
parent
40bf18a55b
commit
ad43c00200
@ -450,6 +450,8 @@ bool meta_load_gamedll()
|
|||||||
|
|
||||||
void meta_rebuild_callbacks()
|
void meta_rebuild_callbacks()
|
||||||
{
|
{
|
||||||
|
META_LOG("dll: Rebuilding callbacks...");
|
||||||
|
|
||||||
g_jit.clear_callbacks();
|
g_jit.clear_callbacks();
|
||||||
|
|
||||||
compile_engine_callbacks();
|
compile_engine_callbacks();
|
||||||
|
@ -215,6 +215,7 @@ MPlugin* MPluginList::plugin_addload(plid_t plid, const char* fname, PLUG_LOADTI
|
|||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
meta_rebuild_callbacks();
|
||||||
META_DEBUG(1, "Loaded plugin '%s' successfully", pl_added->m_desc);
|
META_DEBUG(1, "Loaded plugin '%s' successfully", pl_added->m_desc);
|
||||||
|
|
||||||
return pl_added;
|
return pl_added;
|
||||||
@ -517,7 +518,6 @@ bool MPluginList::cmd_addload(const char* args)
|
|||||||
}
|
}
|
||||||
|
|
||||||
META_CONS("Loaded plugin '%s' successfully", pl_added->m_desc);
|
META_CONS("Loaded plugin '%s' successfully", pl_added->m_desc);
|
||||||
META_CONS("Rebuilding callbacks...");
|
|
||||||
meta_rebuild_callbacks();
|
meta_rebuild_callbacks();
|
||||||
show(0);
|
show(0);
|
||||||
|
|
||||||
@ -547,7 +547,6 @@ bool MPluginList::load()
|
|||||||
META_ERROR("dll: Failed to load plugin '%s'", m_plist[i].m_file);
|
META_ERROR("dll: Failed to load plugin '%s'", m_plist[i].m_file);
|
||||||
}
|
}
|
||||||
|
|
||||||
META_LOG("dll: Rebuilding callbacks...");
|
|
||||||
meta_rebuild_callbacks();
|
meta_rebuild_callbacks();
|
||||||
|
|
||||||
META_LOG("dll: Finished loading %d plugins", n);
|
META_LOG("dll: Finished loading %d plugins", n);
|
||||||
@ -631,7 +630,6 @@ bool MPluginList::refresh(PLUG_LOADTIME now)
|
|||||||
ndone++;
|
ndone++;
|
||||||
}
|
}
|
||||||
|
|
||||||
META_LOG("dll: Rebuilding callbacks...");
|
|
||||||
meta_rebuild_callbacks();
|
meta_rebuild_callbacks();
|
||||||
|
|
||||||
META_LOG("dll: Finished updating %d plugins; kept %d, loaded %d, unloaded %d, reloaded %d, delayed %d", ndone, nkept, nloaded, nunloaded, nreloaded, ndelayed);
|
META_LOG("dll: Finished updating %d plugins; kept %d, loaded %d, unloaded %d, reloaded %d, delayed %d", ndone, nkept, nloaded, nunloaded, nreloaded, ndelayed);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user