Integrate new CInterface into the engine-console

This commit is contained in:
Lukas Joergensen 2018-04-21 10:24:41 +02:00
parent ae1f5a3c89
commit 870ee9fb5b
6 changed files with 67 additions and 8 deletions

View file

@ -455,6 +455,15 @@ bool ModuleManager::loadModuleGroup( const char* pModuleGroup )
moduleGroup, pLoadReadyModuleDefinition->getModuleId(), pLoadReadyModuleDefinition->getVersionId(), pLoadReadyModuleDefinition->getModuleScriptFilePath() );
}
}
else
{
// Is the create method available?
if (pScopeSet->isMethod(pLoadReadyModuleDefinition->getCreateFunction()))
{
// Yes, so call the create method.
Con::executef(pScopeSet, pLoadReadyModuleDefinition->getCreateFunction());
}
}
// Raise notifications.
raiseModulePostLoadNotifications( pLoadReadyModuleDefinition );