mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
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
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user