Add BugSplat to interface

This commit is contained in:
Ryan Huffman 2016-02-09 10:48:32 -08:00
parent b1684eba9c
commit 65b82b9bba
2 changed files with 16 additions and 0 deletions

View file

@ -261,6 +261,8 @@ if (SCRIPTS_INSTALL_DIR)
)
endif()
add_bugsplat()
if (WIN32)
set(EXTRA_DEPLOY_OPTIONS "--qmldir ${PROJECT_SOURCE_DIR}/resources/qml")

View file

@ -24,9 +24,23 @@
#include "Application.h"
#include "InterfaceLogging.h"
#include "MainWindow.h"
#include <BuildInfo.h>
#ifdef HAS_BUGSPLAT
#include <BugSplat.h>
#endif
int main(int argc, const char* argv[]) {
disableQtBearerPoll(); // Fixes wifi ping spikes
#if HAS_BUGSPLAT
// BugSplat initialization
std::unique_ptr<wchar_t> version { new wchar_t(BuildInfo::VERSION.length() + 1) };
BuildInfo::VERSION.toWCharArray(version.get());
version.get()[BuildInfo::VERSION.length()] = NULL;
std::unique_ptr<MiniDmpSender> mpSender { new MiniDmpSender(L"interface_alpha", L"Interface", version.get()) };
#endif
QString applicationName = "High Fidelity Interface - " + qgetenv("USERNAME");