mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-28 13:28:01 +03:00
sys_fs: use path instead of u8path
Japanese PS3 games often use unicode paths which hard crash the std::filesystem::string() method. wstring() would work in these cases, but I guess we can just use path() instead of u8path().
This commit is contained in:
parent
a0297933ce
commit
568e7481d8
1 changed files with 1 additions and 1 deletions
|
@ -251,7 +251,7 @@ bool lv2_fs_mount_info_map::vfs_unmount(std::string_view vpath, bool remove_from
|
|||
|
||||
std::string lv2_fs_object::get_normalized_path(std::string_view path)
|
||||
{
|
||||
std::string normalized_path = std::filesystem::u8path(path).lexically_normal().string();
|
||||
std::string normalized_path = std::filesystem::path(path).lexically_normal().string();
|
||||
|
||||
#ifdef _WIN32
|
||||
std::replace(normalized_path.begin(), normalized_path.end(), '\\', '/');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue