mirror of
https://github.com/stenzek/duckstation.git
synced 2024-11-26 23:50:31 +00:00
System: Reload cheats/patches on safe mode toggle
This commit is contained in:
parent
baa9065d2e
commit
57cf0f2643
@ -1470,9 +1470,14 @@ void System::ApplySettings(bool display_osd_messages)
|
||||
LoadSettings(display_osd_messages);
|
||||
|
||||
// If we've disabled/enabled game settings, we need to reload without it.
|
||||
if (g_settings.apply_game_settings != old_config.apply_game_settings)
|
||||
// Also reload cheats when safe mode is toggled, because patches might change.
|
||||
if (g_settings.apply_game_settings != old_config.apply_game_settings ||
|
||||
g_settings.disable_all_enhancements != old_config.disable_all_enhancements)
|
||||
{
|
||||
UpdateGameSettingsLayer();
|
||||
if (g_settings.apply_game_settings != old_config.apply_game_settings)
|
||||
UpdateGameSettingsLayer();
|
||||
else
|
||||
Cheats::ReloadCheats(false, true, false, true);
|
||||
LoadSettings(display_osd_messages);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user