Merge pull request #5680 from JosJuice/filesystem-case-insensitive

FileSystemGCWii: Use case insensitive comparison in FindFileInfo
This commit is contained in:
Tilka 2017-06-24 14:42:05 +01:00 committed by GitHub
commit c0a966350e
2 changed files with 2 additions and 2 deletions

View File

@ -285,7 +285,7 @@ std::unique_ptr<FileInfo> FileSystemGCWii::FindFileInfo(const std::string& path,
for (const FileInfo& child : file_info) 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. // 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); std::unique_ptr<FileInfo> result = FindFileInfo(rest_of_path, child);

View File

@ -125,7 +125,7 @@ private:
} m_image_indexes; } m_image_indexes;
// Actual backing GameListItems are maintained in a background thread and cached to file // 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::list<std::shared_ptr<GameListItem>> m_cached_files;
std::thread m_scan_thread; std::thread m_scan_thread;
Common::Event m_scan_trigger; Common::Event m_scan_trigger;