xbus modifies library search path in order for QtDBus to find libdbus

refs #615
This commit is contained in:
Roland Winklmeier
2016-04-23 22:53:14 +02:00
parent d4248d2661
commit 21fe8d46ea
5 changed files with 75 additions and 20 deletions

View File

@@ -13,6 +13,7 @@
#define NOMINMAX
#endif
#include "traffic.h"
#include "utils.h"
#include "XPMPMultiplayer.h"
#include "XPMPMultiplayerCSL.h"
#include <XPLM/XPLMProcessing.h>
@@ -40,24 +41,6 @@ namespace XBus
surfaces.lights.timeOffset = static_cast<quint16>(qrand() % 0xffff);
}
QString g_xplanePath;
QString g_sep;
//! Init global xplane path
void initXPlanePath()
{
char xplanePath[512];
XPLMGetSystemPath(xplanePath);
#ifdef Q_OS_MAC
HFS2PosixPath(xplanePath, xplanePath, sizeof(xplanePath));
g_sep = "/";
#else
g_sep = XPLMGetDirectorySeparator();
#endif
g_xplanePath = xplanePath;
}
CTraffic::CTraffic(QObject *parent) : QObject(parent)
{
}