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

Method LoadExtensions

core/logic/PluginSys.cpp:1211–1224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1209}
1210
1211void CPluginManager::LoadExtensions(CPlugin *pPlugin)
1212{
1213 auto callback = [pPlugin] (const sp_pubvar_t *pubvar, const CPlugin::ExtVar& ext) -> bool
1214 {
1215 char path[PLATFORM_MAX_PATH];
1216 /* Attempt to auto-load if necessary */
1217 if (ext.autoload) {
1218 libsys->PathFormat(path, PLATFORM_MAX_PATH, "%s", ext.file);
1219 g_Extensions.LoadAutoExtension(path, ext.required);
1220 }
1221 return true;
1222 };
1223 pPlugin->ForEachExtVar(std::move(callback));
1224}
1225
1226bool CPluginManager::RequireExtensions(CPlugin *pPlugin)
1227{

Callers

nothing calls this directly

Calls 3

PathFormatMethod · 0.80
LoadAutoExtensionMethod · 0.80
ForEachExtVarMethod · 0.80

Tested by

no test coverage detected