mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-04 08:22:32 +00:00
core/fs: fix file path (again)
Third time's the charm.
This commit is contained in:
parent
24bce59f70
commit
b02ab3fd8e
@ -31,7 +31,8 @@ void MntPoints::UnmountAll() {
|
||||
std::filesystem::path MntPoints::GetHostPath(std::string_view path, bool* is_read_only) {
|
||||
// Evil games like Turok2 pass double slashes e.g /app0//game.kpf
|
||||
std::string corrected_path(path);
|
||||
while (size_t pos = corrected_path.find("//") != std::string::npos) {
|
||||
size_t pos = corrected_path.find("//");
|
||||
while (pos != std::string::npos) {
|
||||
corrected_path.replace(pos, 2, "/");
|
||||
pos = corrected_path.find("//", pos + 1);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user