mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 05:26:45 +08:00
xbus modifies library search path in order for QtDBus to find libdbus
refs #615
This commit is contained in:
@@ -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)
|
||||
{
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user