From 39e63374f39337739885c0e39cb72205fda6b99b Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 8 Aug 2016 13:11:36 +0200 Subject: proto/simconnect: specify right path after hier(7) changes Tested-by: @MathijsG Closes #406 --- proto-sc/ftnoir_protocol_sc.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'proto-sc') 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); -- cgit v1.2.3