From b440dbd9981bcb3a1c8315db3a0e38e9bd4c62bd Mon Sep 17 00:00:00 2001 From: JosJuice Date: Sat, 24 Jun 2017 14:06:31 +0200 Subject: [PATCH] FileSystemGCWii: Use case insensitive comparison in FindFileInfo This was a regression in f49b64c. Some games seem to name the banner file OPENING.BNR instead of opening.bnr. Should fix https://bugs.dolphin-emu.org/issues/10354 --- Source/Core/DiscIO/FileSystemGCWii.cpp | 2 +- Source/Core/DolphinWX/GameListCtrl.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Core/DiscIO/FileSystemGCWii.cpp b/Source/Core/DiscIO/FileSystemGCWii.cpp index fd70776069fe..615a33888bc0 100644 --- a/Source/Core/DiscIO/FileSystemGCWii.cpp +++ b/Source/Core/DiscIO/FileSystemGCWii.cpp @@ -285,7 +285,7 @@ std::unique_ptr FileSystemGCWii::FindFileInfo(const std::string& path, for (const FileInfo& child : file_info) { - if (child.GetName() == searching_for) + if (!strcasecmp(child.GetName().c_str(), searching_for.c_str())) { // A match is found. The rest of the path is passed on to finish the search. std::unique_ptr result = FindFileInfo(rest_of_path, child); diff --git a/Source/Core/DolphinWX/GameListCtrl.h b/Source/Core/DolphinWX/GameListCtrl.h index f8bdfce19ffd..2fd89cd9d5f0 100644 --- a/Source/Core/DolphinWX/GameListCtrl.h +++ b/Source/Core/DolphinWX/GameListCtrl.h @@ -125,7 +125,7 @@ class GameListCtrl : public wxListCtrl } m_image_indexes; // Actual backing GameListItems are maintained in a background thread and cached to file - static constexpr u32 CACHE_REVISION = 0; + static constexpr u32 CACHE_REVISION = 1; // Last changed in PR 5680 std::list> m_cached_files; std::thread m_scan_thread; Common::Event m_scan_trigger;