From 65b82b9bba3389b883206f5355dfdcb2d29c28ee Mon Sep 17 00:00:00 2001 From: Ryan Huffman Date: Tue, 9 Feb 2016 10:48:32 -0800 Subject: [PATCH] Add BugSplat to interface --- interface/CMakeLists.txt | 2 ++ interface/src/main.cpp | 14 ++++++++++++++ 2 files changed, 16 insertions(+) diff --git a/interface/CMakeLists.txt b/interface/CMakeLists.txt index b4ce53b92a..b398778db7 100644 --- a/interface/CMakeLists.txt +++ b/interface/CMakeLists.txt @@ -261,6 +261,8 @@ if (SCRIPTS_INSTALL_DIR) ) endif() +add_bugsplat() + if (WIN32) set(EXTRA_DEPLOY_OPTIONS "--qmldir ${PROJECT_SOURCE_DIR}/resources/qml") diff --git a/interface/src/main.cpp b/interface/src/main.cpp index a57e53b384..6ca33ae65c 100644 --- a/interface/src/main.cpp +++ b/interface/src/main.cpp @@ -24,9 +24,23 @@ #include "Application.h" #include "InterfaceLogging.h" #include "MainWindow.h" +#include + +#ifdef HAS_BUGSPLAT +#include +#endif int main(int argc, const char* argv[]) { disableQtBearerPoll(); // Fixes wifi ping spikes + +#if HAS_BUGSPLAT + // BugSplat initialization + std::unique_ptr version { new wchar_t(BuildInfo::VERSION.length() + 1) }; + BuildInfo::VERSION.toWCharArray(version.get()); + version.get()[BuildInfo::VERSION.length()] = NULL; + std::unique_ptr mpSender { new MiniDmpSender(L"interface_alpha", L"Interface", version.get()) }; + +#endif QString applicationName = "High Fidelity Interface - " + qgetenv("USERNAME");