mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-03-12 14:46:49 +01:00
Add a hack to match the *.* wildcard in a file search on non windows platforms. This fixes Metroid Other M on linux, and probably other games. Fixes issue 3966.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6895 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
fecf10173b
commit
1f722be056
@ -94,7 +94,8 @@ void CFileSearch::FindFiles(const std::string& _searchString, const std::string&
|
|||||||
|
|
||||||
std::string s(dp->d_name);
|
std::string s(dp->d_name);
|
||||||
|
|
||||||
if ( (s.size() > ext.size()) && (!strcasecmp(s.substr(s.size() - ext.size()).c_str(), ext.c_str())) )
|
if ( (!ext.compare(".*") && s.compare(".") && s.compare("..")) ||
|
||||||
|
((s.size() > ext.size()) && (!strcasecmp(s.substr(s.size() - ext.size()).c_str(), ext.c_str())) ))
|
||||||
{
|
{
|
||||||
std::string full_name;
|
std::string full_name;
|
||||||
if (_strPath.c_str()[_strPath.size()-1] == DIR_SEP_CHR)
|
if (_strPath.c_str()[_strPath.size()-1] == DIR_SEP_CHR)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user