|
|
@ -77,8 +77,7 @@ void Config::ReadValues() {
|
|
|
|
qt_config->endGroup();
|
|
|
|
qt_config->endGroup();
|
|
|
|
|
|
|
|
|
|
|
|
qt_config->beginGroup("Core");
|
|
|
|
qt_config->beginGroup("Core");
|
|
|
|
Settings::values.cpu_core =
|
|
|
|
Settings::values.use_cpu_jit = qt_config->value("use_cpu_jit", true).toBool();
|
|
|
|
static_cast<Settings::CpuCore>(qt_config->value("cpu_core", 1).toInt());
|
|
|
|
|
|
|
|
qt_config->endGroup();
|
|
|
|
qt_config->endGroup();
|
|
|
|
|
|
|
|
|
|
|
|
qt_config->beginGroup("Renderer");
|
|
|
|
qt_config->beginGroup("Renderer");
|
|
|
@ -94,6 +93,10 @@ void Config::ReadValues() {
|
|
|
|
Settings::values.use_virtual_sd = qt_config->value("use_virtual_sd", true).toBool();
|
|
|
|
Settings::values.use_virtual_sd = qt_config->value("use_virtual_sd", true).toBool();
|
|
|
|
qt_config->endGroup();
|
|
|
|
qt_config->endGroup();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
qt_config->beginGroup("System");
|
|
|
|
|
|
|
|
Settings::values.use_docked_mode = qt_config->value("use_docked_mode", true).toBool();
|
|
|
|
|
|
|
|
qt_config->endGroup();
|
|
|
|
|
|
|
|
|
|
|
|
qt_config->beginGroup("Miscellaneous");
|
|
|
|
qt_config->beginGroup("Miscellaneous");
|
|
|
|
Settings::values.log_filter = qt_config->value("log_filter", "*:Info").toString().toStdString();
|
|
|
|
Settings::values.log_filter = qt_config->value("log_filter", "*:Info").toString().toStdString();
|
|
|
|
qt_config->endGroup();
|
|
|
|
qt_config->endGroup();
|
|
|
@ -171,7 +174,7 @@ void Config::SaveValues() {
|
|
|
|
qt_config->endGroup();
|
|
|
|
qt_config->endGroup();
|
|
|
|
|
|
|
|
|
|
|
|
qt_config->beginGroup("Core");
|
|
|
|
qt_config->beginGroup("Core");
|
|
|
|
qt_config->setValue("cpu_core", static_cast<int>(Settings::values.cpu_core));
|
|
|
|
qt_config->setValue("use_cpu_jit", Settings::values.use_cpu_jit);
|
|
|
|
qt_config->endGroup();
|
|
|
|
qt_config->endGroup();
|
|
|
|
|
|
|
|
|
|
|
|
qt_config->beginGroup("Renderer");
|
|
|
|
qt_config->beginGroup("Renderer");
|
|
|
@ -188,6 +191,10 @@ void Config::SaveValues() {
|
|
|
|
qt_config->setValue("use_virtual_sd", Settings::values.use_virtual_sd);
|
|
|
|
qt_config->setValue("use_virtual_sd", Settings::values.use_virtual_sd);
|
|
|
|
qt_config->endGroup();
|
|
|
|
qt_config->endGroup();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
qt_config->beginGroup("System");
|
|
|
|
|
|
|
|
qt_config->setValue("use_docked_mode", Settings::values.use_docked_mode);
|
|
|
|
|
|
|
|
qt_config->endGroup();
|
|
|
|
|
|
|
|
|
|
|
|
qt_config->beginGroup("Miscellaneous");
|
|
|
|
qt_config->beginGroup("Miscellaneous");
|
|
|
|
qt_config->setValue("log_filter", QString::fromStdString(Settings::values.log_filter));
|
|
|
|
qt_config->setValue("log_filter", QString::fromStdString(Settings::values.log_filter));
|
|
|
|
qt_config->endGroup();
|
|
|
|
qt_config->endGroup();
|
|
|
|