mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
Config: Port remaining Interface settings to new config system.
This commit is contained in:
@ -106,7 +106,7 @@ QSettings& Settings::GetQSettings()
|
||||
|
||||
void Settings::SetThemeName(const QString& theme_name)
|
||||
{
|
||||
SConfig::GetInstance().theme_name = theme_name.toStdString();
|
||||
Config::SetBaseOrCurrent(Config::MAIN_THEME_NAME, theme_name.toStdString());
|
||||
emit ThemeChanged();
|
||||
}
|
||||
|
||||
@ -325,27 +325,26 @@ void Settings::SetStateSlot(int slot)
|
||||
GetQSettings().setValue(QStringLiteral("Emulation/StateSlot"), slot);
|
||||
}
|
||||
|
||||
void Settings::SetCursorVisibility(SConfig::ShowCursor hideCursor)
|
||||
void Settings::SetCursorVisibility(Config::ShowCursor hideCursor)
|
||||
{
|
||||
SConfig::GetInstance().m_show_cursor = hideCursor;
|
||||
|
||||
Config::SetBaseOrCurrent(Config::MAIN_SHOW_CURSOR, hideCursor);
|
||||
emit CursorVisibilityChanged();
|
||||
}
|
||||
|
||||
SConfig::ShowCursor Settings::GetCursorVisibility() const
|
||||
Config::ShowCursor Settings::GetCursorVisibility() const
|
||||
{
|
||||
return SConfig::GetInstance().m_show_cursor;
|
||||
return Config::Get(Config::MAIN_SHOW_CURSOR);
|
||||
}
|
||||
|
||||
void Settings::SetLockCursor(bool lock_cursor)
|
||||
{
|
||||
SConfig::GetInstance().bLockCursor = lock_cursor;
|
||||
Config::SetBaseOrCurrent(Config::MAIN_LOCK_CURSOR, lock_cursor);
|
||||
emit LockCursorChanged();
|
||||
}
|
||||
|
||||
bool Settings::GetLockCursor() const
|
||||
{
|
||||
return SConfig::GetInstance().bLockCursor;
|
||||
return Config::Get(Config::MAIN_LOCK_CURSOR);
|
||||
}
|
||||
|
||||
void Settings::SetKeepWindowOnTop(bool top)
|
||||
@ -457,7 +456,7 @@ void Settings::SetDebugModeEnabled(bool enabled)
|
||||
{
|
||||
if (IsDebugModeEnabled() != enabled)
|
||||
{
|
||||
SConfig::GetInstance().bEnableDebugging = enabled;
|
||||
Config::SetBaseOrCurrent(Config::MAIN_ENABLE_DEBUGGING, enabled);
|
||||
emit DebugModeToggled(enabled);
|
||||
}
|
||||
if (enabled)
|
||||
@ -466,7 +465,7 @@ void Settings::SetDebugModeEnabled(bool enabled)
|
||||
|
||||
bool Settings::IsDebugModeEnabled() const
|
||||
{
|
||||
return SConfig::GetInstance().bEnableDebugging;
|
||||
return Config::Get(Config::MAIN_ENABLE_DEBUGGING);
|
||||
}
|
||||
|
||||
void Settings::SetRegistersVisible(bool enabled)
|
||||
|
Reference in New Issue
Block a user