mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-06-04 23:15:00 -06:00
Implement mods folder
This commit is contained in:
parent
450472b51f
commit
99672ec428
@ -80,6 +80,15 @@ std::filesystem::path MntPoints::GetHostPath(std::string_view path, bool* is_rea
|
|||||||
}
|
}
|
||||||
patch_path /= rel_path;
|
patch_path /= rel_path;
|
||||||
|
|
||||||
|
std::filesystem::path mods_path = mount->host_path;
|
||||||
|
mods_path += "-mods";
|
||||||
|
mods_path /= rel_path;
|
||||||
|
|
||||||
|
if ((corrected_path.starts_with("/app0") || corrected_path.starts_with("/hostapp")) &&
|
||||||
|
std::filesystem::exists(mods_path)) {
|
||||||
|
return mods_path;
|
||||||
|
}
|
||||||
|
|
||||||
if ((corrected_path.starts_with("/app0") || corrected_path.starts_with("/hostapp")) &&
|
if ((corrected_path.starts_with("/app0") || corrected_path.starts_with("/hostapp")) &&
|
||||||
!force_base_path && !ignore_game_patches && std::filesystem::exists(patch_path)) {
|
!force_base_path && !ignore_game_patches && std::filesystem::exists(patch_path)) {
|
||||||
return patch_path;
|
return patch_path;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user