mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-27 00:15:51 +01:00
[PR #2315] [MERGED] runtime: own the executable TLS exit callback #2319
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#2319
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/2315
Author: @ZroIsHere
Created: 11/26/2026
Status: ✅ Merged
Merged: 11/26/2026
Merged by: @aslan2142
Base:
main← Head:fix/thread-local-exe-atexit-callback📝 Commits (1)
338dc11runtime: own the executable TLS exit callback📊 Changes
4 files changed (+48 additions, -6 deletions)
View changed files
📝
runtime/README.md(+5 -3)📝
runtime/shims/process.cpp(+12 -3)📝
runtime/shims/process_shim.h(+21 -0)📝
runtime/src/pe_loader.cpp(+10 -0)📄 Description
During boot, the executable's
_register_thread_local_exe_atexit_callbackimport reached the host UCRT and terminated the process withFAST_FAIL_FATAL_APP_EXITbefore D3D12 initialization.Bind the callback to the runtime. Run it after the executable's TLS thread-detach callbacks and before normal CRT exit parks the game thread.
_Exit,quick_exit,ExitProcessandabortcontinue to skip CRT cleanup.Validation: the Windows/MSVC RelWithDebInfo
gta6rtbuild passed. With the Vulkan backend, translated shaders and a scripted GameInput pad for the no-SDL build, the retail package rendered non-black 3840×2160 frames and reached the Spanish onboarding UI. Captures are in_build/thread-local-shaderboot9/captures(frame_01501andframe_02001). No tests were run.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.