mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 21:45:54 +01:00
[PR #1314] [CLOSED] file_system: GetTempPath and GetTempFileName resolve GAME:, G: and T: to the overlay scratch folder (OLD-10017) #1344
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#1344
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/1314
Author: @ambroseautomation
Created: 11/24/2026
Status: ❌ Closed
Base:
main← Head:carry/old-10017-fs-temp-paths📝 Commits (5)
6976ec8file_system: route console temporary paths to the overlay1ada9fefile_system: preserve temporary directory components46df3ebfile_system: preserve Unicode temporary paths336dda7file_system: reject lossy temporary paths574f8c7Fix 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
Summary
Coordination item:
OLD-10017(carry-forward ofold-pr/10017, preserving original authortedin7across all 5 commits).Problem & Root Cause
Console titles query temporary directories and create temporary files via
GetTempPathW/AandGetTempFileNameW/AusingGAME:,G:, andT:virtual drives. Previously these APIs were not shimmed inruntime/shims/file_system.cpp, so temporary paths were not routed to the overlay scratch directory.Implementation
GetTempPathW/AandGetTempFileNameW/Ashims inruntime/shims/file_system.cpp, routing console temporary paths (GAME:,G:,T:) to the overlay scratch folder.GetTempPathAexact-capacity return value semantics.runtime/test/file_system_test.cpp.Tests Run
Environment: Windows 11 Pro 64-bit, Visual Studio 18 Community (
cl.exex64,/std:c++20 /W4 /permissive- /utf-8).file_system_test.exe(compiled withruntime/test/file_system_test.cpp,runtime/shims/file_system.cpp,runtime/shims/registry.cpp,advapi32.lib,/OPT:NOREF) — 533 check(s), 0 failure(s) (PASS).\scripts\build_runtime.ps1 -jobs 8— PASS (runtime/build/gta6rt.exebuilt cleanly)python -I scripts/check_no_game_data.py runtime/shims/file_system.cpp runtime/test/file_system_test.cpp— PASSDisclosure
AI-assisted: yes (carry-forward, rebase onto current
main, and local MSVC build/test verification; original implementation by tedin7).🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.