System: Remove redundant GameDB lookup

This commit is contained in:
Stenzek 2024-12-12 17:43:00 +10:00
parent 5577328f35
commit db848d1381
No known key found for this signature in database
1 changed files with 2 additions and 6 deletions

View File

@ -1321,12 +1321,8 @@ void System::LoadSettings(bool display_osd_messages)
WarnAboutUnsafeSettings();
// apply compatibility settings
if (g_settings.apply_compatibility_settings && !s_state.running_game_serial.empty())
{
const GameDatabase::Entry* entry = GameDatabase::GetEntryForSerial(s_state.running_game_serial);
if (entry)
entry->ApplySettings(g_settings, display_osd_messages);
}
if (g_settings.apply_compatibility_settings && s_state.running_game_entry)
s_state.running_game_entry->ApplySettings(g_settings, display_osd_messages);
// patch overrides take precedence over compat settings
Cheats::ApplySettingOverrides();