citra-emu
/
citra-canary
Archived
1
0
Fork 0

citra_qt: only update title from game after ensuring loaded successfully

This commit is contained in:
wwylele 2018-06-24 17:30:43 +03:00
parent f50e505a5a
commit 458a96bf90
1 changed files with 5 additions and 4 deletions

View File

@ -606,10 +606,6 @@ bool GMainWindow::LoadROM(const QString& filename) {
Core::System& system{Core::System::GetInstance()}; Core::System& system{Core::System::GetInstance()};
const Core::System::ResultStatus result{system.Load(render_window, filename.toStdString())}; 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) { if (result != Core::System::ResultStatus::Success) {
switch (result) { switch (result) {
@ -666,6 +662,11 @@ bool GMainWindow::LoadROM(const QString& filename) {
return false; return false;
} }
std::string title;
system.GetAppLoader().ReadTitle(title);
game_title = QString::fromStdString(title);
SetupUIStrings();
Core::Telemetry().AddField(Telemetry::FieldType::App, "Frontend", "Qt"); Core::Telemetry().AddField(Telemetry::FieldType::App, "Frontend", "Qt");
return true; return true;
} }