summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2017-08-03 05:11:54 +0200
committerbunnei <bunneidev@gmail.com>2017-08-04 02:10:38 +0200
commitfb8de8985930bc76d8d39d0ff97f880798d5761a (patch)
tree1246eca78bc61a5122c12804f3bc70b93245118d /src/core
parenttelemetry: Add field for BuildName. (diff)
downloadyuzu-fb8de8985930bc76d8d39d0ff97f880798d5761a.tar
yuzu-fb8de8985930bc76d8d39d0ff97f880798d5761a.tar.gz
yuzu-fb8de8985930bc76d8d39d0ff97f880798d5761a.tar.bz2
yuzu-fb8de8985930bc76d8d39d0ff97f880798d5761a.tar.lz
yuzu-fb8de8985930bc76d8d39d0ff97f880798d5761a.tar.xz
yuzu-fb8de8985930bc76d8d39d0ff97f880798d5761a.tar.zst
yuzu-fb8de8985930bc76d8d39d0ff97f880798d5761a.zip
Diffstat (limited to 'src/core')
-rw-r--r--src/core/telemetry_session.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/core/telemetry_session.cpp b/src/core/telemetry_session.cpp
index aca513623..94483f385 100644
--- a/src/core/telemetry_session.cpp
+++ b/src/core/telemetry_session.cpp
@@ -76,6 +76,15 @@ TelemetrySession::TelemetrySession() {
Common::GetCPUCaps().sse4_1);
AddField(Telemetry::FieldType::UserSystem, "CPU_Extension_x64_SSE42",
Common::GetCPUCaps().sse4_2);
+#ifdef __APPLE__
+ AddField(Telemetry::FieldType::UserSystem, "OsPlatform", "Apple");
+#elif defined(_WIN32)
+ AddField(Telemetry::FieldType::UserSystem, "OsPlatform", "Windows");
+#elif defined(__linux__) || defined(linux) || defined(__linux)
+ AddField(Telemetry::FieldType::UserSystem, "OsPlatform", "Linux");
+#else
+ AddField(Telemetry::FieldType::UserSystem, "OsPlatform", "Unknown");
+#endif
// Log user configuration information
AddField(Telemetry::FieldType::UserConfig, "Audio_EnableAudioStretching",