Explorar o código

yuzu-cmd/yuzu: Replace direct usage of the global system telemetry accessor in main()

We already have the system instance around, so we can use that instead
of the accessor.
Lioncash %!s(int64=7) %!d(string=hai) anos
pai
achega
697a4669e1
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/yuzu_cmd/yuzu.cpp

+ 1 - 1
src/yuzu_cmd/yuzu.cpp

@@ -216,7 +216,7 @@ int main(int argc, char** argv) {
         }
     }
 
-    Core::Telemetry().AddField(Telemetry::FieldType::App, "Frontend", "SDL");
+    system.TelemetrySession().AddField(Telemetry::FieldType::App, "Frontend", "SDL");
 
     system.Renderer().Rasterizer().LoadDiskResources();