use DIR_SEP

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1347 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
nakeee 2008-11-30 17:23:38 +00:00
parent e4c6493130
commit 7df394955c
2 changed files with 3 additions and 5 deletions

View File

@ -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)

View File

@ -240,8 +240,8 @@ s32 CWII_IPC_HLE_Device_fs::ExecuteCommand(u32 _Parameter, u32 _BufferIn, u32 _B
LOG(WII_IPC_FILEIO, "FS: CREATE_DIR %s", DirName.c_str());
DirName += "\\";
File::CreateDirectoryStructure(DirName);
DirName += DIR_SEP;
File::CreateDirectoryStructure(DirName );
_dbg_assert_msg_(WII_IPC_FILEIO, File::IsDirectory(DirName.c_str()), "FS: CREATE_DIR %s failed", DirName.c_str());
return FS_RESULT_OK;