From db848d1381e3b2f8fae4b2046afb011a96c64e5b Mon Sep 17 00:00:00 2001 From: Stenzek Date: Thu, 12 Dec 2024 17:43:00 +1000 Subject: [PATCH] System: Remove redundant GameDB lookup --- src/core/system.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/core/system.cpp b/src/core/system.cpp index d2bc4db08..d59718a53 100644 --- a/src/core/system.cpp +++ b/src/core/system.cpp @@ -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();