diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2017-12-03 22:23:08 +0100 | 
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2017-12-04 12:19:26 +0100 | 
| commit | b256886a5cb9f2ae3ebda70a2045b19ed9f4233e (patch) | |
| tree | 4fa1e46de224cf834a05824dc1eb86001bdb3300 /proto-ft | |
| parent | e89709a801e7874bc02c66848c638c6a0ccc85c1 (diff) | |
api: add status check for modules
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);  | 
