Skip to content

Commit

Permalink
FileSystemGCWii: Use case insensitive comparison in FindFileInfo
Browse files Browse the repository at this point in the history
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
  • Loading branch information
JosJuice committed Jun 24, 2017
1 parent 4320c64 commit b440dbd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Source/Core/DiscIO/FileSystemGCWii.cpp
Expand Up @@ -285,7 +285,7 @@ std::unique_ptr<FileInfo> 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<FileInfo> result = FindFileInfo(rest_of_path, child);
Expand Down
2 changes: 1 addition & 1 deletion Source/Core/DolphinWX/GameListCtrl.h
Expand Up @@ -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<std::shared_ptr<GameListItem>> m_cached_files;
std::thread m_scan_thread;
Common::Event m_scan_trigger;
Expand Down

0 comments on commit b440dbd

Please sign in to comment.