yuzu-emu
/
yuzu-android
Archived
1
0
Fork 0

settings: Add 'Reporting Services' config option

Full enable/disable for all reports.
This commit is contained in:
Zach Hilman 2019-05-17 21:44:28 -04:00
parent 5574be21cc
commit 658d2ee97d
3 changed files with 12 additions and 9 deletions

View File

@ -416,6 +416,7 @@ struct Values {
std::string program_args;
bool dump_exefs;
bool dump_nso;
bool reporting_services;
// WebService
bool enable_telemetry;

View File

@ -465,16 +465,16 @@ void Config::ReadDataStorageValues() {
}
void Config::ReadDebuggingValues() {
qt_config->beginGroup(QStringLiteral("Debugging"));
qt_config->beginGroup(QStringLiteral("Debugging"));
Settings::values.use_gdbstub = ReadSetting(QStringLiteral("use_gdbstub"), false).toBool();
Settings::values.gdbstub_port = ReadSetting(QStringLiteral("gdbstub_port"), 24689).toInt();
Settings::values.program_args =
ReadSetting(QStringLiteral("program_args"), QStringLiteral("")).toString().toStdString();
Settings::values.dump_exefs = ReadSetting(QStringLiteral("dump_exefs"), false).toBool();
Settings::values.dump_nso = ReadSetting(QStringLiteral("dump_nso"), false).toBool();
qt_config->endGroup();
Settings::values.use_gdbstub = ReadSetting(QStringLiteral("use_gdbstub"), false).toBool();
Settings::values.gdbstub_port = ReadSetting(QStringLiteral("gdbstub_port"), 24689).toInt();
Settings::values.program_args =
ReadSetting(QStringLiteral("program_args"), QStringLiteral("")).toString().toStdString();
Settings::values.dump_exefs = ReadSetting(QStringLiteral("dump_exefs"), false).toBool();
Settings::values.dump_nso = ReadSetting(QStringLiteral("dump_nso"), false).toBool();
Settings::values.reporting_services = ReadSetting("reporting_services", false).toBool();
qt_config->endGroup();
}
void Config::ReadDisabledAddOnValues() {

View File

@ -383,6 +383,8 @@ void Config::ReadValues() {
Settings::values.program_args = sdl2_config->Get("Debugging", "program_args", "");
Settings::values.dump_exefs = sdl2_config->GetBoolean("Debugging", "dump_exefs", false);
Settings::values.dump_nso = sdl2_config->GetBoolean("Debugging", "dump_nso", false);
Settings::values.reporting_services =
sdl2_config->GetBoolean("Debugging", "reporting_services", false);
const auto title_list = sdl2_config->Get("AddOns", "title_ids", "");
std::stringstream ss(title_list);