mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-30 21:07:52 -05:00
Add support for disabling log from settings
This commit is contained in:
@ -76,14 +76,28 @@ 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();
|
||||
ReadData();
|
||||
ReadMiscellaneous();
|
||||
}
|
||||
|
||||
void Config::Save() {
|
||||
SaveControls();
|
||||
SaveData();
|
||||
SaveMiscellaneous();
|
||||
}
|
||||
|
||||
Config::~Config() {
|
||||
|
@ -17,6 +17,9 @@ class Config {
|
||||
|
||||
void ReadData();
|
||||
void SaveData();
|
||||
|
||||
void ReadMiscellaneous();
|
||||
void SaveMiscellaneous();
|
||||
public:
|
||||
Config();
|
||||
~Config();
|
||||
|
@ -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();
|
||||
|
||||
|
Reference in New Issue
Block a user