summaryrefslogtreecommitdiff
path: root/src/core/core.cpp
diff options
context:
space:
mode:
authorGravatar Lioncash2019-03-02 15:17:40 -0500
committerGravatar Lioncash2019-03-04 10:24:13 -0500
commitb5f0dc95db9af2ce58c3c0348598763f470458ab (patch)
tree7a37a1a62d57f468f0823274ada7a1655b4b6624 /src/core/core.cpp
parentvideo_core/renderer_opengl: Replace direct usage of global system object acce... (diff)
downloadyuzu-b5f0dc95db9af2ce58c3c0348598763f470458ab.tar.gz
yuzu-b5f0dc95db9af2ce58c3c0348598763f470458ab.tar.xz
yuzu-b5f0dc95db9af2ce58c3c0348598763f470458ab.zip
core/core: Replace direct usage of the global system telemetry accessor from Shutdown()
The telemetry instance is actually a member of the class itself, so we can access it directly instead of going through the global accessor.
Diffstat (limited to 'src/core/core.cpp')
-rw-r--r--src/core/core.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/core/core.cpp b/src/core/core.cpp
index ab7181a05..3f4e9c3a8 100644
--- a/src/core/core.cpp
+++ b/src/core/core.cpp
@@ -182,13 +182,13 @@ struct System::Impl {
182 182
183 void Shutdown() { 183 void Shutdown() {
184 // Log last frame performance stats 184 // Log last frame performance stats
185 auto perf_results = GetAndResetPerfStats(); 185 const auto perf_results = GetAndResetPerfStats();
186 Telemetry().AddField(Telemetry::FieldType::Performance, "Shutdown_EmulationSpeed", 186 telemetry_session->AddField(Telemetry::FieldType::Performance, "Shutdown_EmulationSpeed",
187 perf_results.emulation_speed * 100.0); 187 perf_results.emulation_speed * 100.0);
188 Telemetry().AddField(Telemetry::FieldType::Performance, "Shutdown_Framerate", 188 telemetry_session->AddField(Telemetry::FieldType::Performance, "Shutdown_Framerate",
189 perf_results.game_fps); 189 perf_results.game_fps);
190 Telemetry().AddField(Telemetry::FieldType::Performance, "Shutdown_Frametime", 190 telemetry_session->AddField(Telemetry::FieldType::Performance, "Shutdown_Frametime",
191 perf_results.frametime * 1000.0); 191 perf_results.frametime * 1000.0);
192 192
193 is_powered_on = false; 193 is_powered_on = false;
194 194