From 5604986bf37b131397d3f168e7eac6a22292b2ea Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 6 Jul 2016 13:26:18 +0200 Subject: proto-wine: fix .dll path after hier(7) support --- proto-wine/ftnoir_protocol_wine.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'proto-wine/ftnoir_protocol_wine.cpp') diff --git a/proto-wine/ftnoir_protocol_wine.cpp b/proto-wine/ftnoir_protocol_wine.cpp index 99ad30a2..d99164c6 100644 --- a/proto-wine/ftnoir_protocol_wine.cpp +++ b/proto-wine/ftnoir_protocol_wine.cpp @@ -1,4 +1,8 @@ #include "ftnoir_protocol_wine.h" +#include "opentrack/library-path.hpp" +#include +#include +#include #include #include #include /* For mode constants */ @@ -11,7 +15,8 @@ FTNoIR_Protocol::FTNoIR_Protocol() : lck_shm(WINE_SHM_NAME, WINE_MTX_NAME, sizeo shm = (WineSHM*) lck_shm.ptr(); memset(shm, 0, sizeof(*shm)); } - wrapper.start("wine", QStringList() << (QCoreApplication::applicationDirPath() + "/opentrack-wrapper-wine.exe.so")); + static const QString library_path(opentrack_library_path); + wrapper.start("wine", QStringList() << (QCoreApplication::applicationDirPath() + library_path + "opentrack-wrapper-wine.exe.so")); } FTNoIR_Protocol::~FTNoIR_Protocol() @@ -29,7 +34,8 @@ FTNoIR_Protocol::~FTNoIR_Protocol() //shm_unlink("/" WINE_SHM_NAME); } -void FTNoIR_Protocol::pose( const double *headpose ) { +void FTNoIR_Protocol::pose( const double *headpose ) +{ if (shm) { lck_shm.lock(); -- cgit v1.2.3