mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-10-23 18:03:31 -05:00
Qt/Settings: Add debug mode flag
This commit is contained in:
@@ -196,3 +196,17 @@ void Settings::SetCheatsEnabled(bool enabled)
|
||||
emit EnableCheatsChanged(enabled);
|
||||
}
|
||||
}
|
||||
|
||||
void Settings::SetDebugModeEnabled(bool enabled)
|
||||
{
|
||||
if (IsDebugModeEnabled() != enabled)
|
||||
{
|
||||
SConfig::GetInstance().bEnableDebugging = enabled;
|
||||
emit DebugModeToggled(enabled);
|
||||
}
|
||||
}
|
||||
|
||||
bool Settings::IsDebugModeEnabled() const
|
||||
{
|
||||
return SConfig::GetInstance().bEnableDebugging;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user