mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 22:15:52 +01:00
[PR #287] file_system: GetTempPath and GetTempFileName resolve GAME:, G: and T: to the overlay scratch folder #339
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#339
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/287
Author: @Andretuta
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:old-pr/10017📝 Commits (5)
2f926d4file_system: route console temporary paths to the overlay0f516a9file_system: preserve temporary directory componentse0355e0file_system: preserve Unicode temporary pathsfe05177file_system: reject lossy temporary paths16acfacFix GetTempPathA exact capacity return📊 Changes
2 files changed (+246 additions, -0 deletions)
View changed files
📝
runtime/shims/file_system.cpp(+122 -0)📝
runtime/test/file_system_test.cpp(+124 -0)📄 Description
Original description (mentions and
#Nreferences are disabled; the numbers refer to the old repository):@ItsNotRexed: an exe PR, as you asked.Rebased cleanly on current main; supersedes
#8813closed during org migration.What
GetTempPathA/W and GetTempFileNameA/W in
runtime/shims/file_system.cppnow resolve console temp locations (GAME:, G:, T:) to the overlay scratch folder instead of the package. Subdirectories and Unicode are kept, lossy (unrepresentable) paths and refused names fail with the right error, a missing directory is not created, and GetTempPathA returns the exact required size. Host paths pass through unchanged.Why
Without this, a title asking for its temp path on a console root got a path inside the read-only package, or a mangled one.
Tested
file_system_test(clang-cl cross build, run under Wine): +124 lines of checks.*.?listing x1) are identical on main and are Wine-only, unrelated to this change.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.