No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
missing claim
needs rebase
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/ubiquitarianism--leonida!2395
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/2395/head"
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?
@aslan2142 on GitHub · 2026-11-26 18:28 UTC · original
aslan2142:integration/tls-exit-and-scripted-input→main· +205 −39 · 9 files · 7 commits · merged 2026-11-26 18:30 UTCThis merges two of ZroIsHere's draft runtime PRs, each with a maintainer fix on top and a new test.
Claim: #1608 (item
INTEGRATION-ZRO-DRAFTS)Included
_register_thread_local_exe_atexit_callback). The host UCRT accepts one callback per process and fast-fails on the second one. gta6rt's own startup registers the first, so on Windows the title stopped at boot. Under Wine, the title's callback replaced gta6rt's own and was never called. This removes the cause.LEONIDA_INPUT_TRACE(a reading trace), anAcount inLEONIDA_INPUT_STATS, and-FirstRunUiinscripts/windows-boot/boot.ps1.Maintainer changes
On #2315:
_tls_callback_type(void (__stdcall*)(void*, unsigned long, void*)in UCRTprocess.h), as(nullptr, DLL_PROCESS_DETACH, nullptr). The PR called it asvoid (*)(), so the reason argument was whateverrdxheld.exitand_cexitcall it once, before the atexit handlers, as the UCRT does. The leaving thread'sthread_localobjects end before the static ones. The PR ran it after the static destructors, and not in_cexit.run_tiny_atexitgainsthread_local_exitandthread_local_cexit.On #2372:
update()now adds one reading for every start and end of a press since the last update, stamped with the script's time. The history is the same however often the title reads, and no thread runs. This removes the cause; the thread worked around it.LEONIDA_INPUT_TRACEis documented indocs/gameinput.mdandruntime/README.md.gameinput_no_sdl_scriptgainsy@10, a press the title never reads while it is down.Left out
Nothing.
Tests
On Linux, Mesa 26.3.1 RADV, Ryzen 9 7950X3D integrated GPU (gfx1036):
mainbdbc7e923and pass on this branch:run_tiny_atexit(onmain, thethread_localdestructor never runs under--run) andgameinput_no_sdl_script(4 history checks fail onmain).mainbdbc7e923is 421 pass, 24 fail. No test went from pass to fail. The one change isxmem_no_write_watch, from fail to pass, a known flake.tests/test_ci_registration.py, alltests/test_docs_*.py,tests/test_text_write_line_endings.py,scripts/check_no_game_data.pyon the changed files andgit diff --checkall pass.Not tested
--run(a game run follows from this build).boot.ps1 -FirstRunUi.AI-assisted (Claude Code, Claude Opus 5.5 and Claude Fable 5.2)
@aslan2142 on GitHub · 2026-11-26 18:30 UTC · original
Merging. This is a self-merge of an integration batch.
exitand_cexit. The extra call on every thread detach is gone, since the loader already makes that call from the TLS directory.update()reports one reading per press start and end since the last read, stamped with the script's own time, so a replay does not depend on how the host schedules a thread.LEONIDA_INPUT_TRACEis documented.mainbdbc7e923+ this branch (657808a7d), integrated RDNA2 GPU (RADV, Mesa 26.3.1):main. No test went from pass to fail.ctest: 112/112 pass.mainand passes here.test_ci_registration.py, the docs tests, the line-ending test andcheck_no_game_data.pypass.boot.ps1 -FirstRunUi, and the title itself. A boot and exit check with the title from thismainfollows here; if it shows a problem in the exit path, a revert PR comes first.AI-assisted (Claude Code, Claude Opus 5.5 and Claude Fable 5.2)
@ecox982745 on GitHub · 2026-11-26 18:49 UTC · original
Native Windows 11 x64, MSVC 19.44.35229, Release build. All three focused CTests passed on merged main
e57bc63bc5:run_tiny_atexit,gameinput_no_sdl, andgameinput_no_sdl_script.I also built the runtime from the integration's first parent,
f3a50404c0, with the same three test files. The two TLS cases show why checking exit codes alone would miss the regression.thread_local_exitthread_local_cexitOn the merged build, all ten termination paths matched the native output sequence, including the TLS destructor running before the exit handlers. The parent also failed four scripted input history assertions. The merged no-SDL build retained both edges of a Y press at 10.0–10.3 s across reads at 4.5 and 60 s, with the expected timestamps and forward/backward history. The unscripted input control passed on both builds.
These runs used the repository's synthetic fixtures. They cover the callback and input history on native Windows. Game boot and the first-run UI remain separate checks.