| 
						
						
							
								
							
						
						
					 | 
					 | 
					@ -1386,6 +1386,15 @@ void System::ApplySettings(bool display_osd_messages)
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    LoadSettings(display_osd_messages);
 | 
					 | 
					 | 
					 | 
					    LoadSettings(display_osd_messages);
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  }
 | 
					 | 
					 | 
					 | 
					  }
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					  // If safe mode is changed, patches need to be disabled and settings potentially reloaded.
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					  if (g_settings.disable_all_enhancements != old_settings.disable_all_enhancements)
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					  {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					    const bool had_setting_overrides = Cheats::HasAnySettingOverrides();
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					    Cheats::ReloadCheats(false, true, false, true, true);
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					    if (had_setting_overrides != Cheats::HasAnySettingOverrides())
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					      LoadSettings(false);
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					  }
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  CheckForSettingsChanges(old_settings);
 | 
					 | 
					 | 
					 | 
					  CheckForSettingsChanges(old_settings);
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  Host::CheckForSettingsChanges(old_settings);
 | 
					 | 
					 | 
					 | 
					  Host::CheckForSettingsChanges(old_settings);
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					}
 | 
					 | 
					 | 
					 | 
					}
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					 | 
					@ -4335,9 +4344,6 @@ void System::CheckForSettingsChanges(const Settings& old_settings)
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  {
 | 
					 | 
					 | 
					 | 
					  {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    ClearMemorySaveStates(false, false);
 | 
					 | 
					 | 
					 | 
					    ClearMemorySaveStates(false, false);
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    if (g_settings.disable_all_enhancements != old_settings.disable_all_enhancements)
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      Cheats::ReloadCheats(false, true, false, true, true);
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    if (g_settings.cpu_overclock_active != old_settings.cpu_overclock_active ||
 | 
					 | 
					 | 
					 | 
					    if (g_settings.cpu_overclock_active != old_settings.cpu_overclock_active ||
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        (g_settings.cpu_overclock_active &&
 | 
					 | 
					 | 
					 | 
					        (g_settings.cpu_overclock_active &&
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					         (g_settings.cpu_overclock_numerator != old_settings.cpu_overclock_numerator ||
 | 
					 | 
					 | 
					 | 
					         (g_settings.cpu_overclock_numerator != old_settings.cpu_overclock_numerator ||
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					 | 
					
 
 |