summaryrefslogtreecommitdiffhomepage
path: root/proto-fsuipc/ftnoir_protocol_fsuipc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'proto-fsuipc/ftnoir_protocol_fsuipc.cpp')
-rw-r--r--proto-fsuipc/ftnoir_protocol_fsuipc.cpp19
1 files changed, 5 insertions, 14 deletions
diff --git a/proto-fsuipc/ftnoir_protocol_fsuipc.cpp b/proto-fsuipc/ftnoir_protocol_fsuipc.cpp
index 959408fe..b5259581 100644
--- a/proto-fsuipc/ftnoir_protocol_fsuipc.cpp
+++ b/proto-fsuipc/ftnoir_protocol_fsuipc.cpp
@@ -144,23 +144,14 @@ void fsuipc::pose(const double *headpose ) {
prevRotZ = virtRotZ;
}
-bool fsuipc::correct()
+module_status fsuipc::check_status()
{
- qDebug() << "correct says: Starting Function";
-
- //
- // Load the DLL.
- //
FSUIPCLib.setFileName( s.LocationOfDLL );
- if (FSUIPCLib.load() != true) {
- qDebug() << "correct says: Error loading FSUIPC DLL";
- return false;
- }
- else {
- qDebug() << "correct says: FSUIPC DLL loaded.";
- }
- return true;
+ if (FSUIPCLib.load() != true)
+ return error(QCoreApplication::translate("fsuipc", "Can't load fsuipc at '%1'").arg(s.LocationOfDLL));
+ else
+ return status_ok();
}
OPENTRACK_DECLARE_PROTOCOL(fsuipc, FSUIPCControls, fsuipcDll)