summaryrefslogtreecommitdiffhomepage
path: root/proto-ft/ftnoir_protocol_ft_dialog.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2017-12-09 17:59:57 +0100
committerStanislaw Halik <sthalik@misaki.pl>2017-12-09 17:59:57 +0100
commit89f104782e673cfacec0eab016dc22a51533f113 (patch)
tree9fe9dfdbcf1051a49d749a5d77daa8260faa3948 /proto-ft/ftnoir_protocol_ft_dialog.cpp
parent61bf0f0ec4b836981b39910f4719cc526da5c415 (diff)
proto/freetrack: cleanup
- set zeros in shm, for NPClient.dll tracking detection - remove tirviews support - remove registry cleanup on exit support
Diffstat (limited to 'proto-ft/ftnoir_protocol_ft_dialog.cpp')
-rw-r--r--proto-ft/ftnoir_protocol_ft_dialog.cpp14
1 files changed, 2 insertions, 12 deletions
diff --git a/proto-ft/ftnoir_protocol_ft_dialog.cpp b/proto-ft/ftnoir_protocol_ft_dialog.cpp
index 5b3ad3b2..35f03586 100644
--- a/proto-ft/ftnoir_protocol_ft_dialog.cpp
+++ b/proto-ft/ftnoir_protocol_ft_dialog.cpp
@@ -10,8 +10,9 @@
*/
#include "ftnoir_protocol_ft.h"
#include "opentrack-library-path.h"
-#include <QDebug>
+
#include <QFileDialog>
+#include <QFileInfo>
FTControls::FTControls()
{
@@ -21,22 +22,11 @@ FTControls::FTControls()
connect(ui.buttonBox, SIGNAL(rejected()), this, SLOT(doCancel()));
connect(ui.bntLocateNPClient, SIGNAL(clicked()), this, SLOT(selectDLL()));
- tie_setting(s.useTIRViews, ui.chkTIRViews);
- tie_setting(s.close_protocols_on_exit, ui.close_on_exit);
-
ui.cbxSelectInterface->addItem("Enable both");
ui.cbxSelectInterface->addItem("Use FreeTrack, hide TrackIR");
ui.cbxSelectInterface->addItem("Use TrackIR, hide FreeTrack");
tie_setting(s.intUsedInterface, ui.cbxSelectInterface);
-
- static const QFile memhacks_pathname(OPENTRACK_BASE_PATH + OPENTRACK_LIBRARY_PATH "TIRViews.dll");
- if (!memhacks_pathname.exists()) {
- ui.chkTIRViews->setEnabled(false);
- }
- else {
- ui.chkTIRViews->setEnabled(true);
- }
}
void FTControls::doOK()