mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06: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