|
|
@ -84,6 +84,8 @@ void Config::ReadValues() {
|
|
|
|
qt_config->beginGroup("Renderer");
|
|
|
|
qt_config->beginGroup("Renderer");
|
|
|
|
Settings::values.resolution_factor = qt_config->value("resolution_factor", 1.0).toFloat();
|
|
|
|
Settings::values.resolution_factor = qt_config->value("resolution_factor", 1.0).toFloat();
|
|
|
|
Settings::values.toggle_framelimit = qt_config->value("toggle_framelimit", true).toBool();
|
|
|
|
Settings::values.toggle_framelimit = qt_config->value("toggle_framelimit", true).toBool();
|
|
|
|
|
|
|
|
Settings::values.use_accurate_framebuffers =
|
|
|
|
|
|
|
|
qt_config->value("use_accurate_framebuffers", false).toBool();
|
|
|
|
|
|
|
|
|
|
|
|
Settings::values.bg_red = qt_config->value("bg_red", 0.0).toFloat();
|
|
|
|
Settings::values.bg_red = qt_config->value("bg_red", 0.0).toFloat();
|
|
|
|
Settings::values.bg_green = qt_config->value("bg_green", 0.0).toFloat();
|
|
|
|
Settings::values.bg_green = qt_config->value("bg_green", 0.0).toFloat();
|
|
|
@ -184,6 +186,7 @@ void Config::SaveValues() {
|
|
|
|
qt_config->beginGroup("Renderer");
|
|
|
|
qt_config->beginGroup("Renderer");
|
|
|
|
qt_config->setValue("resolution_factor", (double)Settings::values.resolution_factor);
|
|
|
|
qt_config->setValue("resolution_factor", (double)Settings::values.resolution_factor);
|
|
|
|
qt_config->setValue("toggle_framelimit", Settings::values.toggle_framelimit);
|
|
|
|
qt_config->setValue("toggle_framelimit", Settings::values.toggle_framelimit);
|
|
|
|
|
|
|
|
qt_config->setValue("use_accurate_framebuffers", Settings::values.use_accurate_framebuffers);
|
|
|
|
|
|
|
|
|
|
|
|
// Cast to double because Qt's written float values are not human-readable
|
|
|
|
// Cast to double because Qt's written float values are not human-readable
|
|
|
|
qt_config->setValue("bg_red", (double)Settings::values.bg_red);
|
|
|
|
qt_config->setValue("bg_red", (double)Settings::values.bg_red);
|
|
|
|