|
|
@ -85,8 +85,8 @@ void Config::ReadValues() {
|
|
|
|
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.use_frame_limit = qt_config->value("use_frame_limit", true).toBool();
|
|
|
|
Settings::values.use_frame_limit = qt_config->value("use_frame_limit", true).toBool();
|
|
|
|
Settings::values.frame_limit = qt_config->value("frame_limit", 100).toInt();
|
|
|
|
Settings::values.frame_limit = qt_config->value("frame_limit", 100).toInt();
|
|
|
|
Settings::values.use_accurate_framebuffers =
|
|
|
|
Settings::values.use_accurate_gpu_emulation =
|
|
|
|
qt_config->value("use_accurate_framebuffers", false).toBool();
|
|
|
|
qt_config->value("use_accurate_gpu_emulation", 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();
|
|
|
@ -233,7 +233,7 @@ void Config::SaveValues() {
|
|
|
|
qt_config->setValue("resolution_factor", (double)Settings::values.resolution_factor);
|
|
|
|
qt_config->setValue("resolution_factor", (double)Settings::values.resolution_factor);
|
|
|
|
qt_config->setValue("use_frame_limit", Settings::values.use_frame_limit);
|
|
|
|
qt_config->setValue("use_frame_limit", Settings::values.use_frame_limit);
|
|
|
|
qt_config->setValue("frame_limit", Settings::values.frame_limit);
|
|
|
|
qt_config->setValue("frame_limit", Settings::values.frame_limit);
|
|
|
|
qt_config->setValue("use_accurate_framebuffers", Settings::values.use_accurate_framebuffers);
|
|
|
|
qt_config->setValue("use_accurate_gpu_emulation", Settings::values.use_accurate_gpu_emulation);
|
|
|
|
|
|
|
|
|
|
|
|
// 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);
|
|
|
|