diff options
Diffstat (limited to 'src/citra')
| -rw-r--r-- | src/citra/citra.cpp | 4 | ||||
| -rw-r--r-- | src/citra/config.cpp | 5 | ||||
| -rw-r--r-- | src/citra/config.h | 1 | ||||
| -rw-r--r-- | src/citra/default_ini.h | 3 |
4 files changed, 13 insertions, 0 deletions
diff --git a/src/citra/citra.cpp b/src/citra/citra.cpp index 6ac5c5dc5..41b62ac16 100644 --- a/src/citra/citra.cpp +++ b/src/citra/citra.cpp | |||
| @@ -5,6 +5,7 @@ | |||
| 5 | #include "common/common.h" | 5 | #include "common/common.h" |
| 6 | #include "common/log_manager.h" | 6 | #include "common/log_manager.h" |
| 7 | 7 | ||
| 8 | #include "core/settings.h" | ||
| 8 | #include "core/system.h" | 9 | #include "core/system.h" |
| 9 | #include "core/core.h" | 10 | #include "core/core.h" |
| 10 | #include "core/loader/loader.h" | 11 | #include "core/loader/loader.h" |
| @@ -22,6 +23,9 @@ int __cdecl main(int argc, char **argv) { | |||
| 22 | } | 23 | } |
| 23 | 24 | ||
| 24 | Config config; | 25 | Config config; |
| 26 | |||
| 27 | if (!Settings::values.enable_log) | ||
| 28 | LogManager::Shutdown(); | ||
| 25 | 29 | ||
| 26 | std::string boot_filename = argv[1]; | 30 | std::string boot_filename = argv[1]; |
| 27 | EmuWindow_GLFW* emu_window = new EmuWindow_GLFW; | 31 | EmuWindow_GLFW* emu_window = new EmuWindow_GLFW; |
diff --git a/src/citra/config.cpp b/src/citra/config.cpp index c5ce8a164..f45d09fc2 100644 --- a/src/citra/config.cpp +++ b/src/citra/config.cpp | |||
| @@ -65,11 +65,16 @@ void Config::ReadData() { | |||
| 65 | 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); |
| 66 | } | 66 | } |
| 67 | 67 | ||
| 68 | void Config::ReadMiscellaneous() { | ||
| 69 | Settings::values.enable_log = glfw_config->GetBoolean("Miscellaneous", "enable_log", true); | ||
| 70 | } | ||
| 71 | |||
| 68 | void Config::Reload() { | 72 | void Config::Reload() { |
| 69 | LoadINI(glfw_config, glfw_config_loc.c_str(), DefaultINI::glfw_config_file); | 73 | LoadINI(glfw_config, glfw_config_loc.c_str(), DefaultINI::glfw_config_file); |
| 70 | ReadControls(); | 74 | ReadControls(); |
| 71 | ReadCore(); | 75 | ReadCore(); |
| 72 | ReadData(); | 76 | ReadData(); |
| 77 | ReadMiscellaneous(); | ||
| 73 | } | 78 | } |
| 74 | 79 | ||
| 75 | Config::~Config() { | 80 | Config::~Config() { |
diff --git a/src/citra/config.h b/src/citra/config.h index 4f6551876..19bb83700 100644 --- a/src/citra/config.h +++ b/src/citra/config.h | |||
| @@ -18,6 +18,7 @@ class Config { | |||
| 18 | void ReadControls(); | 18 | void ReadControls(); |
| 19 | void ReadCore(); | 19 | void ReadCore(); |
| 20 | void ReadData(); | 20 | void ReadData(); |
| 21 | void ReadMiscellaneous(); | ||
| 21 | public: | 22 | public: |
| 22 | Config(); | 23 | Config(); |
| 23 | ~Config(); | 24 | ~Config(); |
diff --git a/src/citra/default_ini.h b/src/citra/default_ini.h index 557da881b..f1f626eed 100644 --- a/src/citra/default_ini.h +++ b/src/citra/default_ini.h | |||
| @@ -32,6 +32,9 @@ gpu_refresh_rate = ## 60 (default) | |||
| 32 | 32 | ||
| 33 | [Data Storage] | 33 | [Data Storage] |
| 34 | use_virtual_sd = | 34 | use_virtual_sd = |
| 35 | |||
| 36 | [Miscellaneous] | ||
| 37 | enable_log = | ||
| 35 | )"; | 38 | )"; |
| 36 | 39 | ||
| 37 | } | 40 | } |