MCPcopy Create free account
hub / github.com/IChooseYou/Reclass / LoadPluginFromPath

Method LoadPluginFromPath

src/pluginmanager.cpp:126–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124}
125
126bool PluginManager::LoadPluginFromPath(const QString& path)
127{
128 // Check if already loaded
129 QFileInfo fileInfo(path);
130 QString fileName = fileInfo.fileName();
131
132 for (const auto& entry : m_entries)
133 {
134 if (entry.library->fileName().endsWith(fileName))
135 {
136 qWarning() << "PluginManager: Plugin already loaded:" << fileName;
137 return false;
138 }
139 }
140
141 return LoadPlugin(path);
142}
143
144bool PluginManager::UnloadPlugin(const QString& name)
145{

Callers 1

showPluginsDialogMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected