When searching iso directories subfolders, do not include folders multiple times

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2892 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
LPFaint99 2009-04-06 06:58:00 +00:00
parent 17d54d9771
commit 956b06700d
3 changed files with 27 additions and 2 deletions

View file

@ -449,3 +449,14 @@ std::string ThS(int Integer, bool Unsigned)
}
return sbuf;
}
void NormalizeDirSep(std::string* str)
{
#ifdef _WIN32
int i;
while ((i = (int)str->find_first_of('\\')) >= 0)
{
str->replace(i, 1, DIR_SEP);
}
#endif
}