diff options
| author | nakeee <nakeee@gmail.com> | 2008-11-30 17:23:38 +0000 |
|---|---|---|
| committer | nakeee <nakeee@gmail.com> | 2008-11-30 17:23:38 +0000 |
| commit | 7df394955c907de031c9b13d3f902ead822bb33b (patch) | |
| tree | 41653707c052c45ab14e43c1a7a6aca57f48dca6 /Source/Core/Common/Src/FileUtil.cpp | |
| parent | e4c6493130858abcedc0c7ca80e3b59fdc51059f (diff) | |
use DIR_SEP
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1347 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/Common/Src/FileUtil.cpp')
| -rw-r--r-- | Source/Core/Common/Src/FileUtil.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Source/Core/Common/Src/FileUtil.cpp b/Source/Core/Common/Src/FileUtil.cpp index 747bbda2af..d892ae4d7a 100644 --- a/Source/Core/Common/Src/FileUtil.cpp +++ b/Source/Core/Common/Src/FileUtil.cpp @@ -167,9 +167,7 @@ bool CreateDirectoryStructure(const std::string& _rFullPath) {
// find next sub path
{
- size_t nextPosition = _rFullPath.find('/', Position);
- if (nextPosition == std::string::npos)
- nextPosition = _rFullPath.find('\\', Position);
+ size_t nextPosition = _rFullPath.find(DIR_SEP, Position);
Position = nextPosition;
if (Position == std::string::npos)
|
