mirror of
https://github.com/lubosz/overte.git
synced 2025-08-07 17:41:12 +02:00
Add BugSplat to interface
This commit is contained in:
parent
b1684eba9c
commit
65b82b9bba
2 changed files with 16 additions and 0 deletions
|
@ -261,6 +261,8 @@ if (SCRIPTS_INSTALL_DIR)
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
add_bugsplat()
|
||||||
|
|
||||||
if (WIN32)
|
if (WIN32)
|
||||||
set(EXTRA_DEPLOY_OPTIONS "--qmldir ${PROJECT_SOURCE_DIR}/resources/qml")
|
set(EXTRA_DEPLOY_OPTIONS "--qmldir ${PROJECT_SOURCE_DIR}/resources/qml")
|
||||||
|
|
||||||
|
|
|
@ -24,9 +24,23 @@
|
||||||
#include "Application.h"
|
#include "Application.h"
|
||||||
#include "InterfaceLogging.h"
|
#include "InterfaceLogging.h"
|
||||||
#include "MainWindow.h"
|
#include "MainWindow.h"
|
||||||
|
#include <BuildInfo.h>
|
||||||
|
|
||||||
|
#ifdef HAS_BUGSPLAT
|
||||||
|
#include <BugSplat.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
int main(int argc, const char* argv[]) {
|
int main(int argc, const char* argv[]) {
|
||||||
disableQtBearerPoll(); // Fixes wifi ping spikes
|
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");
|
QString applicationName = "High Fidelity Interface - " + qgetenv("USERNAME");
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue