|
|
|
@ -374,6 +374,8 @@ void Config::ReadValues() { |
|
|
|
qt_config->value("use_disk_shader_cache", false).toBool(); |
|
|
|
Settings::values.use_accurate_gpu_emulation = |
|
|
|
qt_config->value("use_accurate_gpu_emulation", false).toBool(); |
|
|
|
Settings::values.use_asynchronous_gpu_emulation = |
|
|
|
qt_config->value("use_asynchronous_gpu_emulation", false).toBool(); |
|
|
|
|
|
|
|
Settings::values.bg_red = qt_config->value("bg_red", 0.0).toFloat(); |
|
|
|
Settings::values.bg_green = qt_config->value("bg_green", 0.0).toFloat(); |
|
|
|
@ -633,6 +635,8 @@ void Config::SaveValues() { |
|
|
|
qt_config->setValue("frame_limit", Settings::values.frame_limit); |
|
|
|
qt_config->setValue("use_disk_shader_cache", Settings::values.use_disk_shader_cache); |
|
|
|
qt_config->setValue("use_accurate_gpu_emulation", Settings::values.use_accurate_gpu_emulation); |
|
|
|
qt_config->setValue("use_asynchronous_gpu_emulation", |
|
|
|
Settings::values.use_asynchronous_gpu_emulation); |
|
|
|
|
|
|
|
// Cast to double because Qt's written float values are not human-readable
|
|
|
|
qt_config->setValue("bg_red", (double)Settings::values.bg_red); |
|
|
|
|