upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/src/pe_loader.cpp
diff options
context:
space:
mode:
authorkotorvr <332716892+kotorvr@users.noreply.github.com>2026-11-22 20:59:34 +0000
committerkotorvr <332716892+kotorvr@users.noreply.github.com>2026-11-22 22:05:06 +0000
commit95f023f62b1fb5c28d88cfbc176de3d6a0c4de17 (patch)
tree7c70ba1cad2e7daf9a682185af305cce712f03e8 /runtime/src/pe_loader.cpp
parent4c52ce27a6cf4af2bbf07a343ede39c5f1572b8d (diff)
file_system: a folder has to exist in the title's view; same-name moves succeed
Three places where the shim disagreed with the host about GAME: paths: - write_target created the parent folders before checking anything. A failed OPEN_EXISTING left the missing folders behind, and a create succeeded in a folder that was never made, below a package file (which then read as a folder) and inside a folder the title had removed. The parent now has to be a folder in the title's view, as CreateDirectory, MoveFile and CopyFile already require; otherwise ERROR_PATH_NOT_FOUND and nothing is created. - FindFirstFile inside a removed package folder returned "." and "..", and inside a folder that never existed reported ERROR_FILE_NOT_FOUND. Both are now ERROR_PATH_NOT_FOUND. - MoveFile onto the same name, or to the same name in another case, failed with ERROR_ALREADY_EXISTS. The first now succeeds and changes nothing; the second renames the overlay entry (a package file gets an overlay copy under the new spelling; a package folder is refused like any other move of one). Two existing checks encoded the old answers and are changed: the test that made GAME:\save\slot1.bin without making GAME:\save first, and the one that expected ERROR_FILE_NOT_FOUND for a listing inside a missing folder. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Diffstat (limited to 'runtime/src/pe_loader.cpp')
0 files changed, 0 insertions, 0 deletions