| 1292 | } |
| 1293 | |
| 1294 | IExtension *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 | |
| 1320 | void CExtensionManager::CallOnCoreMapStart(edict_t *pEdictList, int edictCount, int clientMax) |
| 1321 | { |
no test coverage detected