diff options
| author | 2014-10-27 22:51:10 -0400 | |
|---|---|---|
| committer | 2014-10-27 22:51:10 -0400 | |
| commit | 48f80bb79efc3b27f8ff965c43aafeffff99e0e1 (patch) | |
| tree | 3d08f714f3392ba6aadb0641bac420d8f24c29dc /src/citra/config.cpp | |
| parent | Merge pull request #141 from archshift/crash-hunt (diff) | |
| parent | Added `gpu_refresh_rate` config setting for the new interpreter speed hack. (diff) | |
| download | yuzu-48f80bb79efc3b27f8ff965c43aafeffff99e0e1.tar.gz yuzu-48f80bb79efc3b27f8ff965c43aafeffff99e0e1.tar.xz yuzu-48f80bb79efc3b27f8ff965c43aafeffff99e0e1.zip | |
Merge pull request #151 from archshift/dyncom-enabled
Use configuration files to enable or disable the new dyncom interpreter.
Diffstat (limited to 'src/citra/config.cpp')
| -rw-r--r-- | src/citra/config.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/citra/config.cpp b/src/citra/config.cpp index 03a0ce606..c5ce8a164 100644 --- a/src/citra/config.cpp +++ b/src/citra/config.cpp | |||
| @@ -7,6 +7,7 @@ | |||
| 7 | #include "citra/default_ini.h" | 7 | #include "citra/default_ini.h" |
| 8 | #include "common/file_util.h" | 8 | #include "common/file_util.h" |
| 9 | #include "core/settings.h" | 9 | #include "core/settings.h" |
| 10 | #include "core/core.h" | ||
| 10 | 11 | ||
| 11 | #include "config.h" | 12 | #include "config.h" |
| 12 | 13 | ||
| @@ -55,6 +56,11 @@ void Config::ReadControls() { | |||
| 55 | Settings::values.pad_sright_key = glfw_config->GetInteger("Controls", "pad_sright", GLFW_KEY_RIGHT); | 56 | Settings::values.pad_sright_key = glfw_config->GetInteger("Controls", "pad_sright", GLFW_KEY_RIGHT); |
| 56 | } | 57 | } |
| 57 | 58 | ||
| 59 | void Config::ReadCore() { | ||
| 60 | Settings::values.cpu_core = glfw_config->GetInteger("Core", "cpu_core", Core::CPU_Interpreter); | ||
| 61 | Settings::values.gpu_refresh_rate = glfw_config->GetInteger("Core", "gpu_refresh_rate", 60); | ||
| 62 | } | ||
| 63 | |||
| 58 | void Config::ReadData() { | 64 | void Config::ReadData() { |
| 59 | Settings::values.use_virtual_sd = glfw_config->GetBoolean("Data Storage", "use_virtual_sd", true); | 65 | Settings::values.use_virtual_sd = glfw_config->GetBoolean("Data Storage", "use_virtual_sd", true); |
| 60 | } | 66 | } |
| @@ -62,6 +68,7 @@ void Config::ReadData() { | |||
| 62 | void Config::Reload() { | 68 | void Config::Reload() { |
| 63 | LoadINI(glfw_config, glfw_config_loc.c_str(), DefaultINI::glfw_config_file); | 69 | LoadINI(glfw_config, glfw_config_loc.c_str(), DefaultINI::glfw_config_file); |
| 64 | ReadControls(); | 70 | ReadControls(); |
| 71 | ReadCore(); | ||
| 65 | ReadData(); | 72 | ReadData(); |
| 66 | } | 73 | } |
| 67 | 74 | ||