summaryrefslogtreecommitdiffstats
path: root/src/citra_qt
diff options
context:
space:
mode:
authorTony Wasserka <neobrainx@gmail.com>2014-11-15 12:42:08 +0100
committerTony Wasserka <neobrainx@gmail.com>2014-11-15 12:42:08 +0100
commit80e9c02bd6ec7c4113b69a9172b9c9ae6dc5cf15 (patch)
treeae06f0da5ace2aabd76d2e653c0e6db3f626e123 /src/citra_qt
parentMerge pull request #193 from lioncash/fmt (diff)
parentAdd support for disabling log from settings (diff)
downloadyuzu-80e9c02bd6ec7c4113b69a9172b9c9ae6dc5cf15.tar
yuzu-80e9c02bd6ec7c4113b69a9172b9c9ae6dc5cf15.tar.gz
yuzu-80e9c02bd6ec7c4113b69a9172b9c9ae6dc5cf15.tar.bz2
yuzu-80e9c02bd6ec7c4113b69a9172b9c9ae6dc5cf15.tar.lz
yuzu-80e9c02bd6ec7c4113b69a9172b9c9ae6dc5cf15.tar.xz
yuzu-80e9c02bd6ec7c4113b69a9172b9c9ae6dc5cf15.tar.zst
yuzu-80e9c02bd6ec7c4113b69a9172b9c9ae6dc5cf15.zip
Diffstat (limited to 'src/citra_qt')
-rw-r--r--src/citra_qt/config.cpp14
-rw-r--r--src/citra_qt/config.h3
-rw-r--r--src/citra_qt/main.cpp5
3 files changed, 22 insertions, 0 deletions
diff --git a/src/citra_qt/config.cpp b/src/citra_qt/config.cpp
index 63d396439..09fce4d6f 100644
--- a/src/citra_qt/config.cpp
+++ b/src/citra_qt/config.cpp
@@ -91,16 +91,30 @@ void Config::SaveData() {
qt_config->endGroup();
}
+void Config::ReadMiscellaneous() {
+ qt_config->beginGroup("Miscellaneous");
+ Settings::values.enable_log = qt_config->value("enable_log", true).toBool();
+ qt_config->endGroup();
+}
+
+void Config::SaveMiscellaneous() {
+ qt_config->beginGroup("Miscellaneous");
+ qt_config->setValue("enable_log", Settings::values.enable_log);
+ qt_config->endGroup();
+}
+
void Config::Reload() {
ReadControls();
ReadCore();
ReadData();
+ ReadMiscellaneous();
}
void Config::Save() {
SaveControls();
SaveCore();
SaveData();
+ SaveMiscellaneous();
}
Config::~Config() {
diff --git a/src/citra_qt/config.h b/src/citra_qt/config.h
index 782c26287..8c6568cb2 100644
--- a/src/citra_qt/config.h
+++ b/src/citra_qt/config.h
@@ -18,6 +18,9 @@ class Config {
void SaveCore();
void ReadData();
void SaveData();
+
+ void ReadMiscellaneous();
+ void SaveMiscellaneous();
public:
Config();
~Config();
diff --git a/src/citra_qt/main.cpp b/src/citra_qt/main.cpp
index 304c169b9..9a4e36adf 100644
--- a/src/citra_qt/main.cpp
+++ b/src/citra_qt/main.cpp
@@ -22,6 +22,7 @@
#include "debugger/graphics.hxx"
#include "debugger/graphics_cmdlists.hxx"
+#include "core/settings.h"
#include "core/system.h"
#include "core/core.h"
#include "core/loader/loader.h"
@@ -34,8 +35,12 @@
GMainWindow::GMainWindow()
{
LogManager::Init();
+
Config config;
+ if (!Settings::values.enable_log)
+ LogManager::Shutdown();
+
ui.setupUi(this);
statusBar()->hide();