Fixed a bug where the last module in modules.ini would not be attached to metamod.
This commit is contained in:
parent
c6b0c75b72
commit
ce15e9a3ba
|
@ -2544,7 +2544,7 @@ void CFakeMeta::ReleasePlugins()
|
||||||
bool CFakeMeta::AddCorePlugin()
|
bool CFakeMeta::AddCorePlugin()
|
||||||
{
|
{
|
||||||
// Check whether there already is a core plugin
|
// Check whether there already is a core plugin
|
||||||
if (strcmp((*m_Plugins.begin()).GetPath(), "[AMXX Core]") == 0)
|
if (m_Plugins.begin() && strcmp((*m_Plugins.begin()).GetPath(), "[AMXX Core]") == 0)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
// make a fake plugin for the core
|
// make a fake plugin for the core
|
||||||
|
@ -2560,6 +2560,8 @@ bool CFakeMeta::AddCorePlugin()
|
||||||
// Query all added plugins
|
// Query all added plugins
|
||||||
void CFakeMeta::Meta_Query(mutil_funcs_t *pMetaUtilFuncs)
|
void CFakeMeta::Meta_Query(mutil_funcs_t *pMetaUtilFuncs)
|
||||||
{
|
{
|
||||||
|
AddCorePlugin();
|
||||||
|
|
||||||
// Query all plugins except core
|
// Query all plugins except core
|
||||||
CList<CFakeMetaPlugin>::iterator iter = m_Plugins.begin();
|
CList<CFakeMetaPlugin>::iterator iter = m_Plugins.begin();
|
||||||
++iter; // Skip core
|
++iter; // Skip core
|
||||||
|
@ -2572,6 +2574,8 @@ void CFakeMeta::Meta_Query(mutil_funcs_t *pMetaUtilFuncs)
|
||||||
// Attach all added plugins
|
// Attach all added plugins
|
||||||
void CFakeMeta::Meta_Attach(PLUG_LOADTIME now, meta_globals_t *pMGlobals, gamedll_funcs_t *pGamedllFuncs)
|
void CFakeMeta::Meta_Attach(PLUG_LOADTIME now, meta_globals_t *pMGlobals, gamedll_funcs_t *pGamedllFuncs)
|
||||||
{
|
{
|
||||||
|
AddCorePlugin();
|
||||||
|
|
||||||
// Attach all plugins except core
|
// Attach all plugins except core
|
||||||
CList<CFakeMetaPlugin>::iterator iter = m_Plugins.begin();
|
CList<CFakeMetaPlugin>::iterator iter = m_Plugins.begin();
|
||||||
++iter; // Skip core
|
++iter; // Skip core
|
||||||
|
|
Loading…
Reference in New Issue
Block a user