From e4cb9703cc6810dbe07070b485ea866f00ba9252 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 8 Jul 2016 10:06:49 +0200 Subject: gui, api, proto/wine: get rid of library path as exported symbol There's no need to do that. It never changes unless the toolchain changes. --- proto-wine/ftnoir_protocol_wine.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'proto-wine') diff --git a/proto-wine/ftnoir_protocol_wine.cpp b/proto-wine/ftnoir_protocol_wine.cpp index d99164c6..f11ed8cb 100644 --- a/proto-wine/ftnoir_protocol_wine.cpp +++ b/proto-wine/ftnoir_protocol_wine.cpp @@ -1,5 +1,5 @@ #include "ftnoir_protocol_wine.h" -#include "opentrack/library-path.hpp" +#include "opentrack-library-path.h" #include #include #include @@ -15,8 +15,9 @@ FTNoIR_Protocol::FTNoIR_Protocol() : lck_shm(WINE_SHM_NAME, WINE_MTX_NAME, sizeo shm = (WineSHM*) lck_shm.ptr(); memset(shm, 0, sizeof(*shm)); } - static const QString library_path(opentrack_library_path); - wrapper.start("wine", QStringList() << (QCoreApplication::applicationDirPath() + library_path + "opentrack-wrapper-wine.exe.so")); + static const QString library_path(QCoreApplication::applicationDirPath() + OPENTRACK_LIBRARY_PATH); + wrapper.setWorkingDirectory(QCoreApplication::applicationDirPath()); + wrapper.start("wine", QStringList() << (library_path + "opentrack-wrapper-wine.exe.so")); } FTNoIR_Protocol::~FTNoIR_Protocol() -- cgit v1.2.3