From a8092d6faf34066891cf16ba1f5cfca80c85cc44 Mon Sep 17 00:00:00 2001 From: Michael Zanetti Date: Sun, 19 May 2019 22:14:55 +0200 Subject: [PATCH] little cleanup --- libnymea-core/platform/platform.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/libnymea-core/platform/platform.cpp b/libnymea-core/platform/platform.cpp index 445913a3..4a5c8b05 100644 --- a/libnymea-core/platform/platform.cpp +++ b/libnymea-core/platform/platform.cpp @@ -36,9 +36,8 @@ Platform::Platform(QObject *parent) : QObject(parent) { foreach (const QString &path, pluginSearchDirs()) { QDir dir(path); - qCDebug(dcPlatform) << "Loading plugins from:" << dir.absolutePath(); + qCDebug(dcPlatform) << "Loading platform plugins from:" << dir.absolutePath(); foreach (const QString &entry, dir.entryList(QDir::Files | QDir::Dirs | QDir::NoDotAndDotDot)) { - qCDebug(dcPlatform()) << "Found dir entry" << entry; QFileInfo fi(path + "/" + entry); if (fi.isFile()) { if (entry.startsWith("libnymea_systemplugin") && entry.endsWith(".so")) { @@ -49,8 +48,8 @@ Platform::Platform(QObject *parent) : QObject(parent) } else if (fi.isDir()) { if (QFileInfo::exists(path + "/" + entry + "/libnymea_systemplugin" + entry + ".so")) { loadSystemPlugin(path + "/" + entry + "/libnymea_systemplugin" + entry + ".so"); - } else if (QFileInfo::exists(path + "/" + entry + "/libnymea_platformplugin" + entry + ".so")) { - loadUpdatePlugin(path + "/" + entry + "/libnymea_platformplugin" + entry + ".so"); + } else if (QFileInfo::exists(path + "/" + entry + "/libnymea_updateplugin" + entry + ".so")) { + loadUpdatePlugin(path + "/" + entry + "/libnymea_updateplugin" + entry + ".so"); } } }