diff options
| author | 2019-03-02 15:20:49 -0500 | |
|---|---|---|
| committer | 2019-03-04 10:24:13 -0500 | |
| commit | 319365fdf05f49393a35240c023e10a8d86c7aa7 (patch) | |
| tree | 3062b228d9346d2c838d2382961d2af8741cb56a /src | |
| parent | yuzu-cmd/yuzu: Replace direct usage of the global system telemetry accessor i... (diff) | |
| download | yuzu-319365fdf05f49393a35240c023e10a8d86c7aa7.tar.gz yuzu-319365fdf05f49393a35240c023e10a8d86c7aa7.tar.xz yuzu-319365fdf05f49393a35240c023e10a8d86c7aa7.zip | |
yuzu: Remove usage of the global telemetry accessor
In these cases the system object is nearby, and in the other, the
long-form of accessing the telemetry instance is already used, so we can
get rid of the use of the global accessor.
Diffstat (limited to 'src')
| -rw-r--r-- | src/yuzu/compatdb.cpp | 4 | ||||
| -rw-r--r-- | src/yuzu/main.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/yuzu/compatdb.cpp b/src/yuzu/compatdb.cpp index c09a06520..c8b0a5ec0 100644 --- a/src/yuzu/compatdb.cpp +++ b/src/yuzu/compatdb.cpp | |||
| @@ -53,8 +53,8 @@ void CompatDB::Submit() { | |||
| 53 | case CompatDBPage::Final: | 53 | case CompatDBPage::Final: |
| 54 | back(); | 54 | back(); |
| 55 | LOG_DEBUG(Frontend, "Compatibility Rating: {}", compatibility->checkedId()); | 55 | LOG_DEBUG(Frontend, "Compatibility Rating: {}", compatibility->checkedId()); |
| 56 | Core::Telemetry().AddField(Telemetry::FieldType::UserFeedback, "Compatibility", | 56 | Core::System::GetInstance().TelemetrySession().AddField( |
| 57 | compatibility->checkedId()); | 57 | Telemetry::FieldType::UserFeedback, "Compatibility", compatibility->checkedId()); |
| 58 | 58 | ||
| 59 | button(NextButton)->setEnabled(false); | 59 | button(NextButton)->setEnabled(false); |
| 60 | button(NextButton)->setText(tr("Submitting")); | 60 | button(NextButton)->setText(tr("Submitting")); |
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp index 1d460c189..62aafd1d7 100644 --- a/src/yuzu/main.cpp +++ b/src/yuzu/main.cpp | |||
| @@ -846,7 +846,7 @@ bool GMainWindow::LoadROM(const QString& filename) { | |||
| 846 | } | 846 | } |
| 847 | game_path = filename; | 847 | game_path = filename; |
| 848 | 848 | ||
| 849 | Core::Telemetry().AddField(Telemetry::FieldType::App, "Frontend", "Qt"); | 849 | system.TelemetrySession().AddField(Telemetry::FieldType::App, "Frontend", "Qt"); |
| 850 | return true; | 850 | return true; |
| 851 | } | 851 | } |
| 852 | 852 | ||