mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-22 05:45:38 +00:00
System: Warn if compatibility settings are disabled
This commit is contained in:
parent
04b837a418
commit
96f29d9b99
|
@ -937,11 +937,21 @@ void System::LoadSettings(bool display_osd_messages)
|
|||
InputManager::ReloadBindings(si, *Host::GetSettingsInterfaceForBindings());
|
||||
|
||||
// apply compatibility settings
|
||||
if (g_settings.apply_compatibility_settings && !s_running_game_serial.empty())
|
||||
if (g_settings.apply_compatibility_settings)
|
||||
{
|
||||
const GameDatabase::Entry* entry = GameDatabase::GetEntryForSerial(s_running_game_serial);
|
||||
if (entry)
|
||||
entry->ApplySettings(g_settings, display_osd_messages);
|
||||
if (!s_running_game_serial.empty())
|
||||
{
|
||||
const GameDatabase::Entry* entry = GameDatabase::GetEntryForSerial(s_running_game_serial);
|
||||
if (entry)
|
||||
entry->ApplySettings(g_settings, display_osd_messages);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
Host::AddIconOSDMessage(
|
||||
"compatibility_settings_disabled", ICON_FA_GAMEPAD,
|
||||
TRANSLATE_STR("System", "Compatibility settings are not enabled. Some games may not function correctly."),
|
||||
Host::OSD_WARNING_DURATION);
|
||||
}
|
||||
|
||||
g_settings.FixIncompatibleSettings(display_osd_messages);
|
||||
|
|
Loading…
Reference in a new issue