From 458a96bf90c54a50a1c6dc54c0a73060e1f98600 Mon Sep 17 00:00:00 2001 From: wwylele Date: Sun, 24 Jun 2018 17:30:43 +0300 Subject: [PATCH] citra_qt: only update title from game after ensuring loaded successfully --- src/citra_qt/main.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/citra_qt/main.cpp b/src/citra_qt/main.cpp index cea372b478..b3d94e1e5f 100644 --- a/src/citra_qt/main.cpp +++ b/src/citra_qt/main.cpp @@ -606,10 +606,6 @@ bool GMainWindow::LoadROM(const QString& filename) { Core::System& system{Core::System::GetInstance()}; const Core::System::ResultStatus result{system.Load(render_window, filename.toStdString())}; - std::string title; - system.GetAppLoader().ReadTitle(title); - game_title = QString::fromStdString(title); - SetupUIStrings(); if (result != Core::System::ResultStatus::Success) { switch (result) { @@ -666,6 +662,11 @@ bool GMainWindow::LoadROM(const QString& filename) { return false; } + std::string title; + system.GetAppLoader().ReadTitle(title); + game_title = QString::fromStdString(title); + SetupUIStrings(); + Core::Telemetry().AddField(Telemetry::FieldType::App, "Frontend", "Qt"); return true; }