diff options
Diffstat (limited to 'proto-ft')
-rw-r--r-- | proto-ft/ftnoir_protocol_ft.cpp | 6 | ||||
-rw-r--r-- | proto-ft/ftnoir_protocol_ft.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/proto-ft/ftnoir_protocol_ft.cpp b/proto-ft/ftnoir_protocol_ft.cpp index fbfc23d9..d03ca59a 100644 --- a/proto-ft/ftnoir_protocol_ft.cpp +++ b/proto-ft/ftnoir_protocol_ft.cpp @@ -192,10 +192,10 @@ void freetrack::set_protocols(bool ft, bool npclient) settings_npclient.setValue("Path", ""); } -bool freetrack::correct() +module_status freetrack::check_status() { if (!shm.success()) - return false; + return error("Can't load freetrack memory mapping"); bool use_ft = false, use_npclient = false; @@ -241,7 +241,7 @@ bool freetrack::correct() if (use_npclient) start_dummy(); - return true; + return status_ok(); } OPENTRACK_DECLARE_PROTOCOL(freetrack, FTControls, freetrackDll) diff --git a/proto-ft/ftnoir_protocol_ft.h b/proto-ft/ftnoir_protocol_ft.h index 43c1c3fc..e2faacf3 100644 --- a/proto-ft/ftnoir_protocol_ft.h +++ b/proto-ft/ftnoir_protocol_ft.h @@ -49,7 +49,7 @@ class freetrack : public IProtocol public: freetrack(); ~freetrack() override; - bool correct(); + module_status check_status() override; void pose( const double *headpose ); QString game_name() override { QMutexLocker foo(&game_name_mutex); |