mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-05 08:52:36 +00:00
handle relative paths
This commit is contained in:
parent
46b5437fdf
commit
2b8114db86
@ -50,6 +50,11 @@ std::filesystem::path MntPoints::GetHostPath(std::string_view path, bool* is_rea
|
|||||||
pos = corrected_path.find("//", pos + 1);
|
pos = corrected_path.find("//", pos + 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Path is relative?
|
||||||
|
if(corrected_path.at(0) != '/') {
|
||||||
|
corrected_path = "/app0/" + corrected_path;
|
||||||
|
}
|
||||||
|
|
||||||
const MntPair* mount = GetMount(corrected_path);
|
const MntPair* mount = GetMount(corrected_path);
|
||||||
if (!mount) {
|
if (!mount) {
|
||||||
return "";
|
return "";
|
||||||
|
Loading…
Reference in New Issue
Block a user