From 222ba939f25e4190be4cf0ad78fa4beb6c647c9c Mon Sep 17 00:00:00 2001 From: James Rowe Date: Sat, 7 Apr 2018 07:25:14 -0600 Subject: Prevent crash from uninitialized telemetry --- src/yuzu/main.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp index 936a2759b..34e33170e 100644 --- a/src/yuzu/main.cpp +++ b/src/yuzu/main.cpp @@ -347,8 +347,6 @@ bool GMainWindow::LoadROM(const QString& filename) { const Core::System::ResultStatus result{system.Load(render_window, filename.toStdString())}; - Core::Telemetry().AddField(Telemetry::FieldType::App, "Frontend", "Qt"); - if (result != Core::System::ResultStatus::Success) { switch (result) { case Core::System::ResultStatus::ErrorGetLoader: @@ -409,6 +407,7 @@ bool GMainWindow::LoadROM(const QString& filename) { } return false; } + Core::Telemetry().AddField(Telemetry::FieldType::App, "Frontend", "Qt"); return true; } -- cgit v1.2.3