mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-10-25 18:09:13 -04:00
Warn if dlopen() failed
This commit is contained in:
1 parent
9d962ded6a
commit
125b1ab134
1 file changed
+5
@@ -109,6 +109,11 @@ void PluginManager::AddPlugin(const filesystem::path& path)
|
||||
QPluginLoader* loader = new QPluginLoader(QString::fromStdString(path_string));
|
||||
QObject* instance = loader->instance();
|
||||
|
||||
if(!loader->isLoaded())
|
||||
{
|
||||
LOG_WARNING("[PluginManager] Plugin %s cannot be loaded: %s", path.c_str(), loader->errorString().toStdString().c_str());
|
||||
}
|
||||
|
||||
/*-----------------------------------------------------------------*\
|
||||
| Check that the plugin is valid, then check the API version |
|
||||
\*-----------------------------------------------------------------*/
|
||||
|
||||
Reference in new issue
Block a user