|
|
|
@ -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");
|
|
|
|
|