From 06588f87033243de43c37de175837ce082e46503 Mon Sep 17 00:00:00 2001 From: "Dr. Chat" Date: Sat, 14 Jan 2017 15:19:43 -0600 Subject: [PATCH] Fix xe::CreateParentFolder improperly handling separators on Windows --- src/xenia/base/filesystem.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/xenia/base/filesystem.cc b/src/xenia/base/filesystem.cc index 968b3fa65..ad0f5337e 100644 --- a/src/xenia/base/filesystem.cc +++ b/src/xenia/base/filesystem.cc @@ -97,8 +97,8 @@ std::string CanonicalizePath(const std::string& original_path) { } bool CreateParentFolder(const std::wstring& path) { - auto fixed_path = xe::fix_path_separators(path, '/'); - auto base_path = xe::find_base_path(fixed_path, '/'); + auto fixed_path = xe::fix_path_separators(path, xe::kWPathSeparator); + auto base_path = xe::find_base_path(fixed_path, xe::kWPathSeparator); if (!PathExists(base_path)) { return CreateFolder(base_path); } else {