yuzu-emu
/
yuzu
Archived
1
0
Fork 0

Merge pull request #316 from jroweboy/dontcrash

Prevent crash from uninitialized telemetry
This commit is contained in:
bunnei 2018-04-07 16:48:47 -04:00 committed by GitHub
commit d79558a6f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -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;
}