diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-07-08 10:06:49 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-07-08 10:27:30 +0200 |
commit | e4cb9703cc6810dbe07070b485ea866f00ba9252 (patch) | |
tree | aa78e77c2ce4520513300d1c06cdb53c5c0cacd7 /proto-wine | |
parent | 81b49dabaf168b907252affd5412de7744a409de (diff) |
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.
Diffstat (limited to 'proto-wine')
-rw-r--r-- | proto-wine/ftnoir_protocol_wine.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
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 <QString> #include <QStringList> #include <QCoreApplication> @@ -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() |