Skip to content

Commit

Permalink
System: Make global safe mode always take precedence
Browse files Browse the repository at this point in the history
  • Loading branch information
stenzek committed Oct 21, 2024
1 parent bd5a97f commit 396e7d9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/core/system.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1352,6 +1352,11 @@ void System::LoadSettings(bool display_osd_messages)
g_settings.Load(si, controller_si);
g_settings.UpdateLogSettings();

// Global safe mode overrides game settings.
g_settings.disable_all_enhancements =
(g_settings.disable_all_enhancements ||
Host::Internal::GetBaseSettingsLayer()->GetBoolValue("Main", "DisableAllEnhancements", false));

Host::LoadSettings(si, lock);
InputManager::ReloadSources(controller_si, lock);
InputManager::ReloadBindings(controller_si, hotkey_si);
Expand Down

0 comments on commit 396e7d9

Please sign in to comment.