diff --git a/Source/Core/DolphinQt2/Settings.cpp b/Source/Core/DolphinQt2/Settings.cpp index 6e3907a52c..0e8a076c88 100644 --- a/Source/Core/DolphinQt2/Settings.cpp +++ b/Source/Core/DolphinQt2/Settings.cpp @@ -143,3 +143,31 @@ QVector Settings::GetProfiles(const InputConfig* config) const return vec; } + +bool Settings::IsLogVisible() const +{ + return SConfig::GetInstance().m_InterfaceLogWindow; +} + +void Settings::SetLogVisible(bool visible) +{ + if (IsLogVisible() != visible) + { + SConfig::GetInstance().m_InterfaceLogWindow = visible; + emit LogVisibilityChanged(visible); + } +} + +bool Settings::IsLogConfigVisible() const +{ + return SConfig::GetInstance().m_InterfaceLogConfigWindow; +} + +void Settings::SetLogConfigVisible(bool visible) +{ + if (IsLogConfigVisible() != visible) + { + SConfig::GetInstance().m_InterfaceLogConfigWindow = visible; + emit LogConfigVisibilityChanged(visible); + } +} diff --git a/Source/Core/DolphinQt2/Settings.h b/Source/Core/DolphinQt2/Settings.h index 6283ecba27..0ed8d9d74e 100644 --- a/Source/Core/DolphinQt2/Settings.h +++ b/Source/Core/DolphinQt2/Settings.h @@ -30,6 +30,12 @@ public: QVector GetProfiles(const InputConfig* config) const; QString GetProfileINIPath(const InputConfig* config, const QString& name) const; + bool IsInDevelopmentWarningEnabled() const; + bool IsLogVisible() const; + void SetLogVisible(bool visible); + bool IsLogConfigVisible() const; + void SetLogConfigVisible(bool visible); + // GameList QStringList GetPaths() const; void AddPath(const QString& path); @@ -58,6 +64,8 @@ signals: void HideCursorChanged(); void VolumeChanged(int volume); void NANDRefresh(); + void LogVisibilityChanged(bool visible); + void LogConfigVisibilityChanged(bool visible); private: Settings();