| 1209 | } |
| 1210 | |
| 1211 | void 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 | |
| 1226 | bool CPluginManager::RequireExtensions(CPlugin *pPlugin) |
| 1227 | { |
nothing calls this directly
no test coverage detected