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) diff --git a/Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_fs.cpp b/Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_fs.cpp index 2930345b94..62f42bf16e 100644 --- a/Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_fs.cpp +++ b/Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_fs.cpp @@ -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;