mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-04 08:22:32 +00:00
use operator
This commit is contained in:
parent
1e47edaceb
commit
7b9769ee46
@ -56,7 +56,8 @@ std::filesystem::path MntPoints::GetHostPath(std::string_view guest_directory, b
|
|||||||
const auto rel_path = std::string_view(corrected_path).substr(pos);
|
const auto rel_path = std::string_view(corrected_path).substr(pos);
|
||||||
std::filesystem::path host_path = mount->host_path / rel_path;
|
std::filesystem::path host_path = mount->host_path / rel_path;
|
||||||
|
|
||||||
std::filesystem::path patch_path = mount->host_path.string() + "-UPDATE";
|
std::filesystem::path patch_path = mount->host_path;
|
||||||
|
patch_path += "-UPDATE";
|
||||||
if (corrected_path.starts_with("/app0/") && std::filesystem::exists(patch_path / rel_path)) {
|
if (corrected_path.starts_with("/app0/") && std::filesystem::exists(patch_path / rel_path)) {
|
||||||
host_path = patch_path / rel_path;
|
host_path = patch_path / rel_path;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user