diff options
| author | Vonsek <45567075+Vonsek@users.noreply.github.com> | 2026-11-22 15:51:40 +0100 |
|---|---|---|
| committer | Vonsek <45567075+Vonsek@users.noreply.github.com> | 2026-11-22 15:51:40 +0100 |
| commit | df91c6624b69ee4e6c6eeca20ed68d331ed0e728 (patch) | |
| tree | 323c88b9df89bf8abaa2b98d10808474ab675dc2 /runtime/shims/file_system.cpp | |
| parent | b40d8039a98f57b26bd05860febbabbe59b97873 (diff) | |
| parent | 6a6704df1592e1dc4a3215ddf1423a78adb52045 (diff) | |
Merge main into test/valu-int-misc (#1492)
Conflicted files: runtime/test/shaders/check.py, scripts/run_gpu_tests.py
AI-assisted.
Diffstat (limited to 'runtime/shims/file_system.cpp')
| -rw-r--r-- | runtime/shims/file_system.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/runtime/shims/file_system.cpp b/runtime/shims/file_system.cpp index 38c3194fe..f0ae08811 100644 --- a/runtime/shims/file_system.cpp +++ b/runtime/shims/file_system.cpp | |||
| @@ -142,7 +142,9 @@ std::filesystem::path marker(const std::filesystem::path& overlay, const std::ve | |||
| 142 | bool deleted(const std::filesystem::path& overlay, const std::vector<std::wstring>& parts) { | 142 | bool deleted(const std::filesystem::path& overlay, const std::vector<std::wstring>& parts) { |
| 143 | if (overlay.empty() || parts.empty()) return false; | 143 | if (overlay.empty() || parts.empty()) return false; |
| 144 | std::error_code ec; | 144 | std::error_code ec; |
| 145 | return std::filesystem::exists(marker(overlay, parts), ec); | 145 | // Only regular files are deletion markers; parent directories inside .gta6rt-deleted/ exist only to hold markers |
| 146 | // for nested deleted files and must not hide the corresponding ancestor directories in the package. | ||
| 147 | return std::filesystem::is_regular_file(marker(overlay, parts), ec); | ||
| 146 | } | 148 | } |
| 147 | 149 | ||
| 148 | Target read_target(const std::wstring& path) { | 150 | Target read_target(const std::wstring& path) { |