From f98f1aac5a25806b75f399bdb3f3d17ef3e7da2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C3=ADas=20Buzzo?= Date: Mon, 27 Apr 2026 09:00:31 +0100 Subject: [PATCH] file_sys: apply case-insensitive search to mods_path on GNU/Linux and macOS (#4312) The case-insensitive fallback search() in GetHostPath is only invoked for patch_path and host_path, so mods whose file or folder capitalization does not exactly match the guest path are silently bypassed even when the files are present. Mirror the existing search(patch_path) pass for mods_path, placed first to preserve mod > patch > base precedence. --- src/core/file_sys/fs.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/core/file_sys/fs.cpp b/src/core/file_sys/fs.cpp index 25e107069..e694e636a 100644 --- a/src/core/file_sys/fs.cpp +++ b/src/core/file_sys/fs.cpp @@ -159,6 +159,13 @@ std::filesystem::path MntPoints::GetHostPath(std::string_view path, bool* is_rea return std::optional(current_path); }; + if ((corrected_path.starts_with("/app0") || corrected_path.starts_with("/hostapp")) && + path_type != HostPathType::Base) { + if (const auto path = search(mods_path)) { + return *path; + } + } + if (path_type != HostPathType::Base && !ignore_game_patches) { if (const auto path = search(patch_path)) { return *path;