use DIR_SEP
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1347 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
e4c6493130
commit
7df394955c
|
@ -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)
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue