diff --git a/src/xenia/base/string.cc b/src/xenia/base/string.cc index 44b3ce6c5..804127c6d 100644 --- a/src/xenia/base/string.cc +++ b/src/xenia/base/string.cc @@ -169,6 +169,10 @@ std::vector split_path(const std::string& path) { return split_string(path, "\\/"); } +std::vector split_path(const std::wstring& path) { + return split_string(path, L"\\/"); +} + std::string join_paths(const std::string& left, const std::string& right, char sep) { if (!left.size()) { diff --git a/src/xenia/base/string.h b/src/xenia/base/string.h index a61a98d4c..1ce7dafeb 100644 --- a/src/xenia/base/string.h +++ b/src/xenia/base/string.h @@ -56,6 +56,7 @@ std::wstring to_absolute_path(const std::wstring& path); // Splits the given path on any valid path separator and returns all parts. std::vector split_path(const std::string& path); +std::vector split_path(const std::wstring& path); // Joins two path segments with the given separator. std::string join_paths(const std::string& left, const std::string& right,