core/systems/PluginSys.cpp
changeset 1689 451c11ef473a
parent 1656 b0b86d57530c
child 1766 d30c252089be
     1.1 --- a/core/systems/PluginSys.cpp	Sat Nov 17 02:54:44 2007 +0000
     1.2 +++ b/core/systems/PluginSys.cpp	Sat Nov 17 04:31:01 2007 +0000
     1.3 @@ -1440,6 +1440,18 @@
     1.4  	}
     1.5  }
     1.6  
     1.7 +SPVM_NATIVE_FUNC CPluginManager::FindCoreNative(const char *name)
     1.8 +{
     1.9 +	SPVM_NATIVE_FUNC pfn;
    1.10 +
    1.11 +	if (!sm_trie_retrieve(m_pCoreNatives, name, (void **)&pfn))
    1.12 +	{
    1.13 +		return NULL;
    1.14 +	}
    1.15 +
    1.16 +	return pfn;
    1.17 +}
    1.18 +
    1.19  void CPluginManager::TryRefreshDependencies(CPlugin *pPlugin)
    1.20  {
    1.21  	assert(pPlugin->GetBaseContext() != NULL);