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:
Megamouse 2023-07-20 00:25:32 +02:00 committed by Elad Ashkenazi
parent a0297933ce
commit 568e7481d8

View file

@ -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(), '\\', '/');