From 3ac113857071fc1f225b2e1b42547269e568c6b7 Mon Sep 17 00:00:00 2001 From: Thomas Preud'homme Date: Tue, 11 Aug 2020 22:35:12 +0100 Subject: New upstream version 2.2.4.4 --- PluginsManager.cpp | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) mode change 100644 => 100755 PluginsManager.cpp (limited to 'PluginsManager.cpp') diff --git a/PluginsManager.cpp b/PluginsManager.cpp old mode 100644 new mode 100755 index 269e837..b885612 --- a/PluginsManager.cpp +++ b/PluginsManager.cpp @@ -310,8 +310,9 @@ void PluginsManager::loadPluginXml(PluginsAvailable * thePlugin,const QByteArray loadBalise(root,"architecture",&(thePlugin->informations),&(thePlugin->errorString),true,false); if(thePlugin->errorString.empty()) { - if(thePlugin->informations.back().back()!=ULTRACOPIER_PLATFORM_CODE) - thePlugin->errorString="Wrong platform code: "+thePlugin->informations.back().back(); + const std::string &platform=thePlugin->informations.back().back(); + if(platform!=ULTRACOPIER_PLATFORM_CODE) + thePlugin->errorString="Wrong platform code: "+platform+std::string(" should be ")+ULTRACOPIER_PLATFORM_CODE; } #endif } @@ -528,10 +529,10 @@ std::string PluginsManager::getPluginVersion(const std::string &pluginName) cons { #ifdef ULTRACOPIER_MODE_SUPERCOPIER if(pluginName=="supercopier") - return ULTRACOPIER_VERSION; + return FacilityEngine::version(); #else if(pluginName=="ultracopier") - return ULTRACOPIER_VERSION; + return FacilityEngine::version(); #endif ULTRACOPIER_DEBUGCONSOLE(Ultracopier::DebugLevel_Notice,"start"); unsigned int index=0; @@ -907,7 +908,7 @@ void PluginsManager::newAuthPath(const std::string &path) /// \brief transfor short plugin name into file name std::string PluginsManager::getResolvedPluginName(const std::string &name) { - #if defined(Q_OS_LINUX) || defined(Q_OS_HURD) + #if defined(Q_OS_LINUX) || defined(Q_OS_HURD) || defined(__HAIKU__) return "lib"+name+".so"; #elif defined(Q_OS_MAC) #if defined(QT_DEBUG) @@ -922,7 +923,11 @@ std::string PluginsManager::getResolvedPluginName(const std::string &name) return name+".dll"; #endif #else + #ifndef ULTRACOPIER_PLUGIN_ALL_IN_ONE #error "Platform not supported" + #else + return std::string(); + #endif #endif } -- cgit v1.2.3