summaryrefslogtreecommitdiff
path: root/src/citra
diff options
context:
space:
mode:
authorGravatar bunnei2014-10-27 22:51:10 -0400
committerGravatar bunnei2014-10-27 22:51:10 -0400
commit48f80bb79efc3b27f8ff965c43aafeffff99e0e1 (patch)
tree3d08f714f3392ba6aadb0641bac420d8f24c29dc /src/citra
parentMerge pull request #141 from archshift/crash-hunt (diff)
parentAdded `gpu_refresh_rate` config setting for the new interpreter speed hack. (diff)
downloadyuzu-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.cpp7
-rw-r--r--src/citra/config.h1
-rw-r--r--src/citra/default_ini.h4
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
59void 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
58void Config::ReadData() { 64void 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() {
62void Config::Reload() { 68void 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();
20public: 21public:
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 =
26pad_sleft = 26pad_sleft =
27pad_sright = 27pad_sright =
28 28
29[Core]
30cpu_core = ## 0: Interpreter (default), 1: FastInterpreter (experimental)
31gpu_refresh_rate = ## 60 (default), 1024 or 2048 may work better on the FastInterpreter
32
29[Data Storage] 33[Data Storage]
30use_virtual_sd = 34use_virtual_sd =
31)"; 35)";