Commit 22a6010a authored by Jan Möbius's avatar Jan Möbius

Fixed License Manager for MacOS

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@10824 383ad7c9-94d9-4d36-a494-682f7c89f535
parent d64889f2
......@@ -64,6 +64,10 @@ License File format:
#pragma comment(lib, "IPHLPAPI.lib")
#endif
#ifdef ARCH_DARWIN
#include <sys/types.h>
#include <sys/sysctl.h>
#endif
#include <OpenFlipper/LicenseManager/LicenseManager.hh>
......@@ -113,6 +117,10 @@ bool LicenseManager::authenticate() {
#ifdef WIN32
QFile coreApp(OpenFlipper::Options::applicationDirStr() + QDir::separator() + "OpenFlipper.exe");
#elif defined ARCH_DARWIN
QFile coreApp(OpenFlipper::Options::applicationDirStr() + QDir::separator() + ".." +
QDir::separator() + "MacOS"+
QDir::separator() + "OpenFlipper");
#else
QFile coreApp(OpenFlipper::Options::applicationDirStr() + QDir::separator() + "bin" + QDir::separator() + "OpenFlipper");
#endif
......@@ -136,6 +144,8 @@ bool LicenseManager::authenticate() {
#ifdef WIN32
QFile pluginFile(OpenFlipper::Options::pluginDirStr() + QDir::separator() + pluginFileName() + ".dll");
#elif defined ARCH_DARWIN
QFile pluginFile(OpenFlipper::Options::pluginDirStr() + QDir::separator() + "lib" + pluginFileName() + ".so");
#else
QFile pluginFile(OpenFlipper::Options::pluginDirStr() + QDir::separator() + "lib" + pluginFileName() + ".so");
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment