summaryrefslogtreecommitdiffhomepage
path: root/opentrack
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2014-10-22 14:56:37 +0200
committerStanislaw Halik <sthalik@misaki.pl>2014-10-22 14:56:37 +0200
commit90ecc76a15d0a15b39be67b7a9aa337f57fe6a62 (patch)
tree6f67cd22dee81cc1822999012a59295f1661e3f8 /opentrack
parentcccc8d3312f95054e6b20761b0e40be81158c4b6 (diff)
simplify logic
Diffstat (limited to 'opentrack')
-rw-r--r--opentrack/plugin-support.cpp18
1 files changed, 11 insertions, 7 deletions
diff --git a/opentrack/plugin-support.cpp b/opentrack/plugin-support.cpp
index 33d71420..d058c755 100644
--- a/opentrack/plugin-support.cpp
+++ b/opentrack/plugin-support.cpp
@@ -5,6 +5,8 @@
#include <QFile>
#include <QDir>
+#include <iostream>
+
#ifndef _WIN32
# include <dlfcn.h>
#endif
@@ -20,7 +22,7 @@ static ptr<t> make_instance(ptr<dylib> lib)
if (lib != nullptr && lib->Constructor)
{
qDebug() << "dylib" << (lib ? lib->filename : "<null>") << "ptr" << (intptr_t) lib->Constructor;
- fflush(stderr);
+ std::cout.flush();
ret = ptr<t>(reinterpret_cast<t*>(reinterpret_cast<CTOR_FUNPTR>(lib->Constructor)()));
}
return ret;
@@ -42,12 +44,14 @@ SelectedLibraries::SelectedLibraries(QFrame* frame, dylibptr t, dylibptr p, dyli
return;
}
- if (pProtocol)
- if(!pProtocol->correct())
- {
- qDebug() << "protocol load failure";
- return;
- }
+ if(!pProtocol->correct())
+ {
+ qDebug() << "protocol load failure";
+ return;
+ }
+
+ qDebug() << "start tracker with frame" << (intptr_t)frame;
+ std::cout.flush();
pTracker->start_tracker(frame);