From 568e7481d87f7bb2cac68eb24be967b1da75619f Mon Sep 17 00:00:00 2001 From: Megamouse Date: Thu, 20 Jul 2023 00:25:32 +0200 Subject: [PATCH] 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(). --- rpcs3/Emu/Cell/lv2/sys_fs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpcs3/Emu/Cell/lv2/sys_fs.cpp b/rpcs3/Emu/Cell/lv2/sys_fs.cpp index d9d77c0874..f079bf4c13 100644 --- a/rpcs3/Emu/Cell/lv2/sys_fs.cpp +++ b/rpcs3/Emu/Cell/lv2/sys_fs.cpp @@ -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(), '\\', '/');