file_system: a GAME: name inside a missing folder fails with ERROR_PATH_NOT_FOUND, as on the host (OLD-10004) #760

Merged
abnalstlll-byte merged 1 commit from upstream-pr/760 into main 2026-11-24 21:27:10 +00:00
abnalstlll-byte commented 2026-11-24 13:33:05 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by abnalstlll-byte on 2026-11-24T13:33:05Z.


Restore old upstream PR 10004 (OLD-10004).

Replaces hardcoded ERROR_FILE_NOT_FOUND with missing_error() in delete_file_w, remove_directory_w, move_file_ex_w, and set_file_attributes_w so paths under non-existent directories return ERROR_PATH_NOT_FOUND as native Windows does.

Clean-room verified; zero game data.

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5473134408 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/760). Originally posted by [abnalstlll-byte](https://github.com/abnalstlll-byte) on 2026-11-24T13:33:05Z. --- Restore old upstream PR 10004 (OLD-10004). Replaces hardcoded ERROR_FILE_NOT_FOUND with missing_error() in delete_file_w, remove_directory_w, move_file_ex_w, and set_file_attributes_w so paths under non-existent directories return ERROR_PATH_NOT_FOUND as native Windows does. Clean-room verified; zero game data.
moffington commented 2026-11-24 14:13:53 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by moffington on 2026-11-24T14:13:53Z.


Independently tested 5112ec1a8 against 2d73c242f under Wine 11.20 with clang-cl 23.1.3 and xwin.

All added filesystem checks pass. The same eight pre-existing failures remain on both revisions (494 checks on base, 507 on head).

Additional synthetic probes confirmed host error-code parity for missing parent directories, paths below files, removed package folders, drive aliases, narrow API calls and long paths. Missing files in existing directories and read-only deletions retain their expected error codes.

xgameruntime_test also passes all 158 checks. No regressions found. LGTM.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7134042230 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/760#issuecomment-7134042230). Originally posted by [moffington](https://github.com/moffington) on 2026-11-24T14:13:53Z. --- Independently tested `5112ec1a8` against `2d73c242f` under Wine 11.20 with clang-cl 23.1.3 and xwin. All added filesystem checks pass. The same eight pre-existing failures remain on both revisions (494 checks on base, 507 on head). Additional synthetic probes confirmed host error-code parity for missing parent directories, paths below files, removed package folders, drive aliases, narrow API calls and long paths. Missing files in existing directories and read-only deletions retain their expected error codes. `xgameruntime_test` also passes all 158 checks. No regressions found. LGTM.
QemmHD commented 2026-11-24 21:27:07 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by QemmHD on 2026-11-24T21:27:07Z.


Merging.

Why merged: OLD-10004: DeleteFile, RemoveDirectory, SetFileAttributes and the MoveFile source return ERROR_PATH_NOT_FOUND for a name inside a missing folder, as the host does. runtime_imports.md is updated. moffington ran it under Wine with no regressions.

Why it's good: Error codes only. The new checks compare against the real host APIs, and the test confirms nothing is left in the overlay. file_system passes both plain and under validation.

Tested on Windows 11 / RTX 4070 SUPER (NVIDIA 621.24), VS 2022 + Ninja RelWithDebInfo, Vulkan SDK 1.4.363.0. Merged alone onto main 66d4f5aa3, its ctests pass both plain and with LEONIDA_VK_VALIDATION=1. Cumulative of this batch (13 PRs) on main 0b45fdc21: the repo-consistency set gives 573 passed / 5 skipped / 0 failed, compileall is clean, and full ctest is 314/316 with the same 11 skips. The only failures are main's: d3d12_depth_resolve (pre-existing) and d3d12_close_parity (the #510 regression, fixed by #1286). All d3d12_* tests under validation show 0 VUIDs. git merge-tree against current main 6261ca916: no conflicts. Security read of the three-dot diff: no binaries, game data, downloads, network calls or CI changes.

AI-assisted (Claude Code, Claude Opus 5.5).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7144947220 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/760#issuecomment-7144947220). Originally posted by [QemmHD](https://github.com/QemmHD) on 2026-11-24T21:27:07Z. --- Merging. **Why merged:** OLD-10004: DeleteFile, RemoveDirectory, SetFileAttributes and the MoveFile source return ERROR_PATH_NOT_FOUND for a name inside a missing folder, as the host does. runtime_imports.md is updated. moffington ran it under Wine with no regressions. **Why it's good:** Error codes only. The new checks compare against the real host APIs, and the test confirms nothing is left in the overlay. file_system passes both plain and under validation. Tested on Windows 11 / RTX 4070 SUPER (NVIDIA 621.24), VS 2022 + Ninja RelWithDebInfo, Vulkan SDK 1.4.363.0. Merged alone onto main 66d4f5aa3, its ctests pass both plain and with LEONIDA_VK_VALIDATION=1. Cumulative of this batch (13 PRs) on main 0b45fdc21: the repo-consistency set gives 573 passed / 5 skipped / 0 failed, compileall is clean, and full ctest is 314/316 with the same 11 skips. The only failures are main's: d3d12_depth_resolve (pre-existing) and d3d12_close_parity (the #510 regression, fixed by #1286). All d3d12_* tests under validation show 0 VUIDs. git merge-tree against current main 6261ca916: no conflicts. Security read of the three-dot diff: no binaries, game data, downloads, network calls or CI changes. AI-assisted (Claude Code, Claude Opus 5.5).
abnalstlll-byte commented 2026-11-24 21:42:59 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by abnalstlll-byte on 2026-11-24T21:42:59Z.


discord: oldd7om

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7145294433 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/760#issuecomment-7145294433). Originally posted by [abnalstlll-byte](https://github.com/abnalstlll-byte) on 2026-11-24T21:42:59Z. --- discord: oldd7om
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
ProjectLeonida/mandy!760
No description provided.