mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
Merge pull request #10019 from JosJuice/port-enable-cheats
Port Enable Cheats to the new config system
This commit is contained in:
@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user