diff options
author | bunnei <bunneidev@gmail.com> | 2017-08-23 04:37:03 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2017-08-26 05:10:00 +0200 |
commit | c781aea947e275a970a3431a36160b769865993d (patch) | |
tree | 1c1971aeba3563beb3e2b092a751f07df0c40dfd /src/citra_qt/configuration | |
parent | telemetry_session: Log telemetry ID. (diff) | |
download | yuzu-c781aea947e275a970a3431a36160b769865993d.tar yuzu-c781aea947e275a970a3431a36160b769865993d.tar.gz yuzu-c781aea947e275a970a3431a36160b769865993d.tar.bz2 yuzu-c781aea947e275a970a3431a36160b769865993d.tar.lz yuzu-c781aea947e275a970a3431a36160b769865993d.tar.xz yuzu-c781aea947e275a970a3431a36160b769865993d.tar.zst yuzu-c781aea947e275a970a3431a36160b769865993d.zip |
Diffstat (limited to 'src/citra_qt/configuration')
-rw-r--r-- | src/citra_qt/configuration/config.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/citra_qt/configuration/config.cpp b/src/citra_qt/configuration/config.cpp index 7386814b3..e2dceaa4c 100644 --- a/src/citra_qt/configuration/config.cpp +++ b/src/citra_qt/configuration/config.cpp @@ -139,10 +139,13 @@ void Config::ReadValues() { qt_config->endGroup(); qt_config->beginGroup("WebService"); + Settings::values.enable_telemetry = qt_config->value("enable_telemetry", true).toBool(); Settings::values.telemetry_endpoint_url = qt_config->value("telemetry_endpoint_url", "https://services.citra-emu.org/api/telemetry") .toString() .toStdString(); + Settings::values.citra_username = qt_config->value("citra_username").toString().toStdString(); + Settings::values.citra_token = qt_config->value("citra_token").toString().toStdString(); qt_config->endGroup(); qt_config->beginGroup("UI"); @@ -284,8 +287,11 @@ void Config::SaveValues() { qt_config->endGroup(); qt_config->beginGroup("WebService"); + qt_config->setValue("enable_telemetry", Settings::values.enable_telemetry); qt_config->setValue("telemetry_endpoint_url", QString::fromStdString(Settings::values.telemetry_endpoint_url)); + qt_config->setValue("citra_username", QString::fromStdString(Settings::values.citra_username)); + qt_config->setValue("citra_token", QString::fromStdString(Settings::values.citra_token)); qt_config->endGroup(); qt_config->beginGroup("UI"); |