about summary refs log tree commit diff stats
path: root/vcpkg.json
blob: e13d2288643991cd82d833369a0e713a42737720 (plain) (blame)
1
2
3
4
5
6
7
8
9
{
  "dependencies": [
    "websocketpp",
    "wxwidgets",
    "openssl",
    "yaml-cpp",
    "fmt"
  ]
}
t">
#include <wx/wxprec.h>

#ifndef WX_PRECOMP
#include <wx/wx.h>
#endif

#include "global.h"
#include "tracker_config.h"
#include "tracker_frame.h"

class TrackerApp : public wxApp {
 public:
  virtual bool OnInit() {
    GetTrackerConfig().Load();

    TrackerFrame *frame = new TrackerFrame();
    frame->Show(true);
    return true;
  }

  bool OnExceptionInMainLoop() override {
    try {
      throw;
    } catch (const std::exception& ex) {
      wxLogError(ex.what());
    }

    return false;
  }
};

wxIMPLEMENT_APP(TrackerApp);