mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 22:05:54 +01:00
[PR #271] [CLOSED] file_system: a GAME: name inside a missing folder fails with ERROR_PATH_NOT_FOUND, as on the host #323
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#323
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/271
Author: @Andretuta
Created: 11/24/2026
Status: ❌ Closed
Base:
main← Head:old-pr/10004📝 Commits (1)
7e7a0d9file_system: a GAME: name inside a missing folder fails with ERROR_PATH_NOT_FOUND, as on the host📊 Changes
3 files changed (+56 additions, -10 deletions)
View changed files
📝
docs/runtime_imports.md(+3 -1)📝
runtime/shims/file_system.cpp(+8 -7)📝
runtime/test/file_system_test.cpp(+45 -2)📄 Description
Original description (mentions and
#Nreferences are disabled; the numbers refer to the old repository):Claimed in the coordination issue as: new RT item (claim). Resubmits
#7316, closed in the reset.What and why
DeleteFile,RemoveDirectory,SetFileAttributesand the source ofMoveFile(Ex)answered everyGAME:name the title can't see withERROR_FILE_NOT_FOUND. The host tells two cases apart: a name inside a folder that is missing, or below a file, isERROR_PATH_NOT_FOUND, and only a missing name in a folder that exists isERROR_FILE_NOT_FOUND. Measured on Windows 10 22H2 with the real calls on a scratch folder: 3 for all four calls onmissing\x.txt,missing\deeper\x.txtandfile.txt\x.txt, 2 fornope.txt.CreateDirectory,CopyFile, the write opens andFindFirstFilealready make that split here.The four calls now pick the error with the same
is_folder(parent_of(parts))test the others use, so a folder the title removed counts as missing too. One existing check expectedERROR_FILE_NOT_FOUNDforDeleteFileW(GAME:\nope\missing.txt), wherenopedoesn't exist; it now expectsERROR_PATH_NOT_FOUND, the host's answer. One sentence indocs/runtime_imports.md.Same change as
#7316, on top of currentmain(d083a2c); the only conflict wasmainrenamingjointodisk_pathon theMoveFileline.Tested
Windows 10 22H2 (19045), RTX 2060 / NVIDIA 566.14, Ryzen 5 2600X, clang-cl 23.1.6 + lld-link, MSVC 14.44 STL, Windows SDK 10.0.26100, Ninja:
file_systempasses.#7316(b9c590fd2):file_system_test457 checks OK; withmain'sfile_system.cppit failed 9 (the 8 new path-not-found checks and the updated one).#7316: review, Windows (MSVC), RTX 5090, RTX 4070.No game files. AI-assisted (Claude Code).
Checklist
docs/design.md, with how it was confirmed. (no translator change)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.