From 99672ec4288bfe1a9aec2ead3570c4540abb04a9 Mon Sep 17 00:00:00 2001 From: rainmakerv2 <30595646+rainmakerv3@users.noreply.github.com> Date: Sat, 4 Apr 2026 16:32:49 +0800 Subject: [PATCH] Implement mods folder --- src/core/file_sys/fs.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/core/file_sys/fs.cpp b/src/core/file_sys/fs.cpp index aa474d20a..a60ef8e9b 100644 --- a/src/core/file_sys/fs.cpp +++ b/src/core/file_sys/fs.cpp @@ -80,6 +80,15 @@ std::filesystem::path MntPoints::GetHostPath(std::string_view path, bool* is_rea } 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")) && !force_base_path && !ignore_game_patches && std::filesystem::exists(patch_path)) { return patch_path;