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 | |
| 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')
| -rw-r--r-- | src/citra/config.cpp | 7 | ||||
| -rw-r--r-- | src/citra/config.h | 1 | ||||
| -rw-r--r-- | src/citra/default_ini.h | 4 |
3 files changed, 12 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 | ||
diff --git a/src/citra/config.h b/src/citra/config.h index c4fac2459..4f6551876 100644 --- a/src/citra/config.h +++ b/src/citra/config.h | |||
| @@ -16,6 +16,7 @@ class Config { | |||
| 16 | 16 | ||
| 17 | bool LoadINI(INIReader* config, const char* location, const std::string& default_contents="", bool retry=true); | 17 | bool LoadINI(INIReader* config, const char* location, const std::string& default_contents="", bool retry=true); |
| 18 | void ReadControls(); | 18 | void ReadControls(); |
| 19 | void ReadCore(); | ||
| 19 | void ReadData(); | 20 | void ReadData(); |
| 20 | public: | 21 | public: |
| 21 | Config(); | 22 | Config(); |
diff --git a/src/citra/default_ini.h b/src/citra/default_ini.h index e7e45f4a9..7352c70c2 100644 --- a/src/citra/default_ini.h +++ b/src/citra/default_ini.h | |||
| @@ -26,6 +26,10 @@ pad_sdown = | |||
| 26 | pad_sleft = | 26 | pad_sleft = |
| 27 | pad_sright = | 27 | pad_sright = |
| 28 | 28 | ||
| 29 | [Core] | ||
| 30 | cpu_core = ## 0: Interpreter (default), 1: FastInterpreter (experimental) | ||
| 31 | gpu_refresh_rate = ## 60 (default), 1024 or 2048 may work better on the FastInterpreter | ||
| 32 | |||
| 29 | [Data Storage] | 33 | [Data Storage] |
| 30 | use_virtual_sd = | 34 | use_virtual_sd = |
| 31 | )"; | 35 | )"; |