MCPcopy Create free account
hub / github.com/alliedmodders/sourcemod / LoadExternal

Method LoadExternal

core/logic/ExtensionSys.cpp:1294–1318  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1292}
1293
1294IExtension *CExtensionManager::LoadExternal(IExtensionInterface *pInterface,
1295 const char *filepath,
1296 const char *filename,
1297 char *error,
1298 size_t maxlength)
1299{
1300 IExtension *pAlready;
1301 if ((pAlready=FindExtensionByFile(filename)) != NULL)
1302 {
1303 return pAlready;
1304 }
1305
1306 CExtension *pExt = new CRemoteExtension(pInterface, filename, filepath);
1307
1308 if (!pExt->Load(error, maxlength) || !pExt->IsLoaded())
1309 {
1310 pExt->Unload();
1311 delete pExt;
1312 return NULL;
1313 }
1314
1315 m_Libs.push_back(pExt);
1316
1317 return pExt;
1318}
1319
1320void CExtensionManager::CallOnCoreMapStart(edict_t *pEdictList, int edictCount, int clientMax)
1321{

Callers 1

SM_LoadExtensionFunction · 0.80

Calls 4

IsLoadedMethod · 0.80
push_backMethod · 0.80
LoadMethod · 0.45
UnloadMethod · 0.45

Tested by

no test coverage detected