summaryrefslogtreecommitdiff
path: root/src/citra/config.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/citra/config.cpp')
-rw-r--r--src/citra/config.cpp7
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
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