summaryrefslogtreecommitdiffstats
path: root/src/core/telemetry_session.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2017-08-24 03:09:34 +0200
committerbunnei <bunneidev@gmail.com>2017-08-26 05:10:02 +0200
commit04bd0c957e583a518121626deb029f214cc98cf6 (patch)
tree5fa503204b059f95add63b40494b359c51de3422 /src/core/telemetry_session.cpp
parentqt: Add an option to view/regenerate telemetry ID. (diff)
downloadyuzu-04bd0c957e583a518121626deb029f214cc98cf6.tar
yuzu-04bd0c957e583a518121626deb029f214cc98cf6.tar.gz
yuzu-04bd0c957e583a518121626deb029f214cc98cf6.tar.bz2
yuzu-04bd0c957e583a518121626deb029f214cc98cf6.tar.lz
yuzu-04bd0c957e583a518121626deb029f214cc98cf6.tar.xz
yuzu-04bd0c957e583a518121626deb029f214cc98cf6.tar.zst
yuzu-04bd0c957e583a518121626deb029f214cc98cf6.zip
Diffstat (limited to '')
-rw-r--r--src/core/telemetry_session.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/core/telemetry_session.cpp b/src/core/telemetry_session.cpp
index d0f257f58..104a16cc9 100644
--- a/src/core/telemetry_session.cpp
+++ b/src/core/telemetry_session.cpp
@@ -77,7 +77,13 @@ u64 RegenerateTelemetryId() {
TelemetrySession::TelemetrySession() {
#ifdef ENABLE_WEB_SERVICE
- backend = std::make_unique<WebService::TelemetryJson>();
+ if (Settings::values.enable_telemetry) {
+ backend = std::make_unique<WebService::TelemetryJson>(
+ Settings::values.telemetry_endpoint_url, Settings::values.citra_username,
+ Settings::values.citra_token);
+ } else {
+ backend = std::make_unique<Telemetry::NullVisitor>();
+ }
#else
backend = std::make_unique<Telemetry::NullVisitor>();
#endif