mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 14:49:42 -06:00
Makes file search case insensitive with a little help from strcasecmp
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@118 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -97,8 +97,7 @@ void CFileSearch::FindFiles(const std::string& _searchString, const std::string&
|
||||
strcpy(temp, dp->d_name);
|
||||
std::string s(temp);
|
||||
|
||||
// TODO - case insensitive comparison
|
||||
if ((s.size() > ext.size()) && (s.substr(s.size() - ext.size()) == ext))
|
||||
if ( (s.size() > ext.size()) && (!strcasecmp(s.substr(s.size() - ext.size()).c_str(), ext.c_str())) )
|
||||
{
|
||||
std::string full_name = _strPath + "/" + s;
|
||||
m_FileNames.push_back(full_name);
|
||||
|
Reference in New Issue
Block a user