mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-05-25 21:03:18 +00:00
parent
24bce59f70
commit
a13d1d1ab1
1 changed files with 2 additions and 1 deletions
|
@ -31,7 +31,8 @@ void MntPoints::UnmountAll() {
|
||||||
std::filesystem::path MntPoints::GetHostPath(std::string_view path, bool* is_read_only) {
|
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
|
// Evil games like Turok2 pass double slashes e.g /app0//game.kpf
|
||||||
std::string corrected_path(path);
|
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, "/");
|
corrected_path.replace(pos, 2, "/");
|
||||||
pos = corrected_path.find("//", pos + 1);
|
pos = corrected_path.find("//", pos + 1);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue