diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-07-18 10:15:29 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-07-18 10:15:29 +0200 |
commit | 181770b1e169b9c7c75eacdc969102cce18a8be7 (patch) | |
tree | 9f7a990c37dd48f803c9005da13cd86d3f8534cd /proto-ft/ftnoir_protocol_ft.cpp | |
parent | c3a1174b922040da29b9c979343aa9fba24b46ba (diff) |
some: adjust install paths and invocations
Diffstat (limited to 'proto-ft/ftnoir_protocol_ft.cpp')
-rw-r--r-- | proto-ft/ftnoir_protocol_ft.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/proto-ft/ftnoir_protocol_ft.cpp b/proto-ft/ftnoir_protocol_ft.cpp index ccec3db0..111af156 100644 --- a/proto-ft/ftnoir_protocol_ft.cpp +++ b/proto-ft/ftnoir_protocol_ft.cpp @@ -8,6 +8,7 @@ #include "ftnoir_protocol_ft.h" #include "csv/csv.h" +#include "opentrack-library-path.h" check_for_first_run FTNoIR_Protocol::runonce_check = check_for_first_run(); @@ -93,7 +94,7 @@ void FTNoIR_Protocol::pose(const double* headpose) { } void FTNoIR_Protocol::start_tirviews() { - QString aFileName = QCoreApplication::applicationDirPath() + "/TIRViews.dll"; + QString aFileName = OPENTRACK_BASE_PATH + OPENTRACK_LIBRARY_PATH "TIRViews.dll"; if ( QFile::exists( aFileName )) { FTIRViewsLib.setFileName(aFileName); FTIRViewsLib.load(); @@ -118,14 +119,14 @@ void FTNoIR_Protocol::start_tirviews() { } void FTNoIR_Protocol::start_dummy() { - QString program = QCoreApplication::applicationDirPath() + "/TrackIR.exe"; + QString program = OPENTRACK_BASE_PATH + OPENTRACK_LIBRARY_PATH "TrackIR.exe"; dummyTrackIR.setProgram("\"" + program + "\""); dummyTrackIR.start(); } void FTNoIR_Protocol::set_protocols(bool ft, bool npclient) { - const QString program_dir = QCoreApplication::applicationDirPath() + "/"; + const QString program_dir = OPENTRACK_BASE_PATH + OPENTRACK_LIBRARY_PATH; // Registry settings (in HK_USER) QSettings settings_ft("Freetrack", "FreetrackClient"); |