diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-08-08 13:11:36 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-08-08 13:11:36 +0200 |
commit | 39e63374f39337739885c0e39cb72205fda6b99b (patch) | |
tree | aa9918622a97b3ffde81febf2a41e6ee29011a12 /proto-sc | |
parent | fdbe45450aed82fe9589dd2bee65fec77dc01afb (diff) |
proto/simconnect: specify right path after hier(7) changes
Tested-by: @MathijsG
Closes #406
Diffstat (limited to 'proto-sc')
-rw-r--r-- | proto-sc/ftnoir_protocol_sc.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/proto-sc/ftnoir_protocol_sc.cpp b/proto-sc/ftnoir_protocol_sc.cpp index 8458cc20..fb60cb01 100644 --- a/proto-sc/ftnoir_protocol_sc.cpp +++ b/proto-sc/ftnoir_protocol_sc.cpp @@ -11,6 +11,7 @@ */ #include "ftnoir_protocol_sc.h" #include "opentrack/plugin-api.hpp" +#include "opentrack-library-path.h" FTNoIR_Protocol::FTNoIR_Protocol() : should_stop(false), hSimConnect(nullptr) { @@ -87,7 +88,8 @@ public: #else # define PREFIX "lib" #endif - QString path = QCoreApplication::applicationDirPath() + "/" PREFIX "opentrack-proto-simconnect.dll"; + static const QString prefix = OPENTRACK_BASE_PATH + OPENTRACK_LIBRARY_PATH; + QString path = prefix + PREFIX "opentrack-proto-simconnect.dll"; QByteArray name = QFile::encodeName(path); actx.lpSource = name.constData(); hactctx = CreateActCtxA(&actx); |