mirror of
https://github.com/overte-org/overte.git
synced 2025-04-14 04:07:11 +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()
|
||||
|
||||
add_bugsplat()
|
||||
|
||||
if (WIN32)
|
||||
set(EXTRA_DEPLOY_OPTIONS "--qmldir ${PROJECT_SOURCE_DIR}/resources/qml")
|
||||
|
||||
|
|
|
@ -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");
|
||||
|
||||
|
|
Loading…
Reference in a new issue