From fe565afff0e840967bb70a55d9a93ffee6d75adf Mon Sep 17 00:00:00 2001 From: TheTechnician27 Date: Thu, 18 Sep 2025 12:37:17 -0500 Subject: [PATCH] GameList: Prioritize file title over serial for covers --- pcsx2/GameList.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/pcsx2/GameList.cpp b/pcsx2/GameList.cpp index 0938b398f3..5606e5e3cf 100644 --- a/pcsx2/GameList.cpp +++ b/pcsx2/GameList.cpp @@ -1215,16 +1215,7 @@ std::string GameList::GetCoverImagePathForEntry(const Entry* entry) for (const char* extension : extensions) { - // Prioritize lookup by serial (Most specific) - if (!entry->serial.empty()) - { - const std::string cover_filename(entry->serial + extension); - cover_path = Path::Combine(EmuFolders::Covers, cover_filename); - if (FileSystem::FileExists(cover_path.c_str())) - return cover_path; - } - - // Try file title (for modded games or specific like above) + // Prioritize file title since users can change these (e.g. for modded games) const std::string_view file_title(Path::GetFileTitle(entry->path)); if (!file_title.empty() && entry->title != file_title) { @@ -1236,6 +1227,15 @@ std::string GameList::GetCoverImagePathForEntry(const Entry* entry) return cover_path; } + // Lookup by serial (most specific) + if (!entry->serial.empty()) + { + const std::string cover_filename(entry->serial + extension); + cover_path = Path::Combine(EmuFolders::Covers, cover_filename); + if (FileSystem::FileExists(cover_path.c_str())) + return cover_path; + } + // Last resort, check the game title if (!entry->title.empty()) {