mirror of
https://github.com/citra-emu/citra-canary.git
synced 2024-12-23 17:05:34 +00:00
settings: Add telemetry endpoint URL.
This commit is contained in:
parent
f7a9d42592
commit
8abf808854
|
@ -151,6 +151,10 @@ void Config::ReadValues() {
|
||||||
Settings::values.use_gdbstub = sdl2_config->GetBoolean("Debugging", "use_gdbstub", false);
|
Settings::values.use_gdbstub = sdl2_config->GetBoolean("Debugging", "use_gdbstub", false);
|
||||||
Settings::values.gdbstub_port =
|
Settings::values.gdbstub_port =
|
||||||
static_cast<u16>(sdl2_config->GetInteger("Debugging", "gdbstub_port", 24689));
|
static_cast<u16>(sdl2_config->GetInteger("Debugging", "gdbstub_port", 24689));
|
||||||
|
|
||||||
|
// Web Service
|
||||||
|
Settings::values.telemetry_endpoint_url = sdl2_config->Get(
|
||||||
|
"WebService", "telemetry_endpoint_url", "https://services.citra-emu.org/api/telemetry");
|
||||||
}
|
}
|
||||||
|
|
||||||
void Config::Reload() {
|
void Config::Reload() {
|
||||||
|
|
|
@ -168,5 +168,9 @@ log_filter = *:Info
|
||||||
# Port for listening to GDB connections.
|
# Port for listening to GDB connections.
|
||||||
use_gdbstub=false
|
use_gdbstub=false
|
||||||
gdbstub_port=24689
|
gdbstub_port=24689
|
||||||
|
|
||||||
|
[WebService]
|
||||||
|
# Endpoint URL for submitting telemetry data
|
||||||
|
telemetry_endpoint_url =
|
||||||
)";
|
)";
|
||||||
}
|
}
|
||||||
|
|
|
@ -133,6 +133,13 @@ void Config::ReadValues() {
|
||||||
Settings::values.gdbstub_port = qt_config->value("gdbstub_port", 24689).toInt();
|
Settings::values.gdbstub_port = qt_config->value("gdbstub_port", 24689).toInt();
|
||||||
qt_config->endGroup();
|
qt_config->endGroup();
|
||||||
|
|
||||||
|
qt_config->beginGroup("WebService");
|
||||||
|
Settings::values.telemetry_endpoint_url =
|
||||||
|
qt_config->value("telemetry_endpoint_url", "https://services.citra-emu.org/api/telemetry")
|
||||||
|
.toString()
|
||||||
|
.toStdString();
|
||||||
|
qt_config->endGroup();
|
||||||
|
|
||||||
qt_config->beginGroup("UI");
|
qt_config->beginGroup("UI");
|
||||||
|
|
||||||
qt_config->beginGroup("UILayout");
|
qt_config->beginGroup("UILayout");
|
||||||
|
@ -268,6 +275,11 @@ void Config::SaveValues() {
|
||||||
qt_config->setValue("gdbstub_port", Settings::values.gdbstub_port);
|
qt_config->setValue("gdbstub_port", Settings::values.gdbstub_port);
|
||||||
qt_config->endGroup();
|
qt_config->endGroup();
|
||||||
|
|
||||||
|
qt_config->beginGroup("WebService");
|
||||||
|
qt_config->setValue("telemetry_endpoint_url",
|
||||||
|
QString::fromStdString(Settings::values.telemetry_endpoint_url));
|
||||||
|
qt_config->endGroup();
|
||||||
|
|
||||||
qt_config->beginGroup("UI");
|
qt_config->beginGroup("UI");
|
||||||
|
|
||||||
qt_config->beginGroup("UILayout");
|
qt_config->beginGroup("UILayout");
|
||||||
|
|
|
@ -126,6 +126,9 @@ struct Values {
|
||||||
// Debugging
|
// Debugging
|
||||||
bool use_gdbstub;
|
bool use_gdbstub;
|
||||||
u16 gdbstub_port;
|
u16 gdbstub_port;
|
||||||
|
|
||||||
|
// WebService
|
||||||
|
std::string telemetry_endpoint_url;
|
||||||
} extern values;
|
} extern values;
|
||||||
|
|
||||||
// a special value for Values::region_value indicating that citra will automatically select a region
|
// a special value for Values::region_value indicating that citra will automatically select a region
|
||||||
|
|
Loading…
Reference in a new issue