mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 04:08:55 +00:00
Port Enable Cheats to the new config system
This commit is contained in:
parent
67c06cfc55
commit
fa0525f826
9 changed files with 19 additions and 20 deletions
|
@ -415,14 +415,14 @@ void Settings::ResetNetPlayServer(NetPlay::NetPlayServer* server)
|
|||
|
||||
bool Settings::GetCheatsEnabled() const
|
||||
{
|
||||
return SConfig::GetInstance().bEnableCheats;
|
||||
return Config::Get(Config::MAIN_ENABLE_CHEATS);
|
||||
}
|
||||
|
||||
void Settings::SetCheatsEnabled(bool enabled)
|
||||
{
|
||||
if (SConfig::GetInstance().bEnableCheats != enabled)
|
||||
if (Config::Get(Config::MAIN_ENABLE_CHEATS) != enabled)
|
||||
{
|
||||
SConfig::GetInstance().bEnableCheats = enabled;
|
||||
Config::SetBaseOrCurrent(Config::MAIN_ENABLE_CHEATS, enabled);
|
||||
emit EnableCheatsChanged(enabled);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue