diff --git a/rpcs3/Crypto/unpkg.cpp b/rpcs3/Crypto/unpkg.cpp index da503bc85f71..4edd0a2d7558 100644 --- a/rpcs3/Crypto/unpkg.cpp +++ b/rpcs3/Crypto/unpkg.cpp @@ -952,11 +952,11 @@ bool package_reader::fill_data(std::map& all_instal default: { // TODO: check for valid utf8 characters - const std::string true_path = std::filesystem::weakly_canonical(path).string(); + const std::string true_path = std::filesystem::path(path).lexically_normal().string(); if (true_path.empty()) { num_failures++; - pkg_log.error("Failed to get weakly_canonical path for '%s'", path); + pkg_log.error("Failed to normalize package path for '%s'", path); break; }