diff options
author | bunnei <bunneidev@gmail.com> | 2020-02-03 22:56:25 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-03 22:56:25 +0100 |
commit | c31ec00d676f6dda0bebee70d7a0b230e5babee9 (patch) | |
tree | 52c674cace5652f5d359dedd02ee01f911559192 /src/core/telemetry_session.cpp | |
parent | Merge pull request #3374 from lioncash/udp (diff) | |
parent | ci: Disable Vulkan for Windows MinGW builds (diff) | |
download | yuzu-c31ec00d676f6dda0bebee70d7a0b230e5babee9.tar yuzu-c31ec00d676f6dda0bebee70d7a0b230e5babee9.tar.gz yuzu-c31ec00d676f6dda0bebee70d7a0b230e5babee9.tar.bz2 yuzu-c31ec00d676f6dda0bebee70d7a0b230e5babee9.tar.lz yuzu-c31ec00d676f6dda0bebee70d7a0b230e5babee9.tar.xz yuzu-c31ec00d676f6dda0bebee70d7a0b230e5babee9.tar.zst yuzu-c31ec00d676f6dda0bebee70d7a0b230e5babee9.zip |
Diffstat (limited to 'src/core/telemetry_session.cpp')
-rw-r--r-- | src/core/telemetry_session.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/core/telemetry_session.cpp b/src/core/telemetry_session.cpp index 320e8ad73..0e72d31cd 100644 --- a/src/core/telemetry_session.cpp +++ b/src/core/telemetry_session.cpp @@ -46,6 +46,16 @@ static u64 GenerateTelemetryId() { return telemetry_id; } +static const char* TranslateRenderer(Settings::RendererBackend backend) { + switch (backend) { + case Settings::RendererBackend::OpenGL: + return "OpenGL"; + case Settings::RendererBackend::Vulkan: + return "Vulkan"; + } + return "Unknown"; +} + u64 GetTelemetryId() { u64 telemetry_id{}; const std::string filename{FileUtil::GetUserPath(FileUtil::UserPath::ConfigDir) + @@ -169,7 +179,7 @@ void TelemetrySession::AddInitialInfo(Loader::AppLoader& app_loader) { AddField(field_type, "Audio_SinkId", Settings::values.sink_id); AddField(field_type, "Audio_EnableAudioStretching", Settings::values.enable_audio_stretching); AddField(field_type, "Core_UseMultiCore", Settings::values.use_multi_core); - AddField(field_type, "Renderer_Backend", "OpenGL"); + AddField(field_type, "Renderer_Backend", TranslateRenderer(Settings::values.renderer_backend)); AddField(field_type, "Renderer_ResolutionFactor", Settings::values.resolution_factor); AddField(field_type, "Renderer_UseFrameLimit", Settings::values.use_frame_limit); AddField(field_type, "Renderer_FrameLimit", Settings::values.frame_limit); |