<feed xmlns='http://www.w3.org/2005/Atom'>
<title>npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/runtime/test/process_cmdline_test.cpp, branch main</title>
<subtitle>[no description]</subtitle>
<id>https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/atom?h=main</id>
<link rel='self' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/'/>
<updated>2026-11-28T00:25:47+00:00</updated>
<entry>
<title>d3d12, process: null barrier arrays, CopyTiles in a bundle, calibration wait, entry thread and getmainargs expand</title>
<updated>2026-11-28T00:25:47+00:00</updated>
<author>
<name>Tyrannys</name>
<email>80750971+Tyrannys@users.noreply.github.com</email>
</author>
<published>2026-11-28T00:25:47+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=d411fe9b4a3aab2a75dfbed4d6e4f01d758ef668'/>
<id>urn:sha1:d411fe9b4a3aab2a75dfbed4d6e4f01d758ef668</id>
<content type='text'>
From kevincommits' finding (item 4) in #1608.

- d3d12_com.cpp:
  - ResourceBarrier: a count with no array fails the list (check(false)) instead
    of reading through null, as WriteBufferImmediate does.
  - Barrier: the same for a null group array, and for a group with barriers but
    no barrier array (the three array pointers are one union).
  - CopyTiles: a bundle is refused for reserved buffers too, not only for sparse
    images; no copy is allowed in a bundle.
  - submitted_calibration: vkGetQueryPoolResults asks VK_QUERY_RESULT_WAIT_BIT,
    so the read cannot answer VK_NOT_READY.
- process.cpp:
  - run_entry passes the entry point itself to the game thread instead of a
    pointer to its own stack: another thread can end the run before the game
    thread first runs, and run_entry's frame is then gone.
  - __getmainargs/__wgetmainargs expand wildcards when `expand` is nonzero
    (mode 2, as _configure_*_argv does) and fail on a null argc or argv.

Tests: d3d12_com_test (null arrays fail Close; counts of 0 and valid calls
do not), d3d12_buffer_tiles_test (CopyTiles of a reserved buffer in a bundle
fails Close), process_cmdline_test (expand 0 and 1, null argc/argv).

Co-Authored-By: Claude Opus 5.5 &lt;noreply@anthropic.com&gt;
</content>
</entry>
<entry>
<title>main keeps its own runtime, tools and tests; the branch's variants stay on port/d3d12-nvidia</title>
<updated>2026-11-27T22:58:38+00:00</updated>
<author>
<name>NotRexed</name>
<email>therealnothingfn@gmail.com</email>
</author>
<published>2026-11-27T22:58:38+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=00131bb85ee294179e5179b00a2c68f4ea3610b5'/>
<id>urn:sha1:00131bb85ee294179e5179b00a2c68f4ea3610b5</id>
<content type='text'>
After the merge the tree held this branch's older states of files main maintains. Run against main's code,
tests/test_acphal_abi.py and 11 of the 15 translator tests that differed failed, and the C++ runtime would have
been built from two generations of its sources. So that the merge cannot break what main builds and tests:

- runtime/ is main's, file for file (68 files only this branch had are not carried over);
- every file under tools/, tests/ and docs/ that both sides have is main's (80 files);
- ten translator tests only this branch has, which test rules main's translator does not have, and their
  fixtures are left out.

What main gains: d3d12/ (the Rust D3D12 runtime), its launchers and helpers (Launcher.bat, scripts/play*.ps1,
play-linux.sh, port_ctl.py, smooth-motion.ps1, fetch_vkd3d_proton.py, sync_victory.py), mods/example_lua, eleven
notes under docs/, seven tools and the tests that pass with main's code, the README's sections and credits, and
the "Runtime traps" section of AGENTS.md. Everything left out here is on the branch port/d3d12-nvidia.

Checked: compileall; make_game.py --help; check_no_game_data.py over every file this adds to main; the
line-ending, docs-encoding, CI-registration and docs tests; each test file that differs from main, on its own.
Not run: the whole translator suite, the C++ build, cargo over d3d12/ after the merge (d3d12/ is byte for byte the
branch's), CI.

Co-Authored-By: Claude Fable 5.2 &lt;noreply@anthropic.com&gt;
</content>
</entry>
<entry>
<title>Merge mandy's main into port/d3d12-nvidia</title>
<updated>2026-11-27T22:50:37+00:00</updated>
<author>
<name>NotRexed</name>
<email>therealnothingfn@gmail.com</email>
</author>
<published>2026-11-27T22:50:37+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=b87abdef5735adc68a614b2025ffcf9869a47cc5'/>
<id>urn:sha1:b87abdef5735adc68a614b2025ffcf9869a47cc5</id>
<content type='text'>
Brings the D3D12 runtime branch (d3d12/, its launcher scripts and notes, and the pull requests reviewed and applied
on it) together with mandy's main.

Conflicts (67 files, none under d3d12/): docs/, make_game.py, runtime/, scripts/build_runtime.ps1, tests/ and
tools/. Every one takes main's side: main is where that code is maintained, and this branch's copies were older
states of the same files or the same pull requests in another form. tests/test_fspx_unpack.py is main's too, as it
tests main's tools/fspx_unpack.py. Nothing under d3d12/ is changed by the merge.

Checked before pushing: python -m compileall over make_game.py, tools and tests; make_game.py --help;
scripts/check_no_game_data.py over the files this adds to main; tests/test_text_write_line_endings.py. The
translator suite, the C++ runtime build and CI have not run on the result.

Co-Authored-By: Claude Fable 5.2 &lt;noreply@anthropic.com&gt;
</content>
</entry>
<entry>
<title>process: log the title's debug output and its TerminateProcess</title>
<updated>2026-11-26T07:28:26+00:00</updated>
<author>
<name>NotRexed</name>
<email>therealnothingfn@gmail.com</email>
</author>
<published>2026-11-26T07:28:26+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=704bbfd1f95e659e6df22b921baecfb47dbc38c5'/>
<id>urn:sha1:704bbfd1f95e659e6df22b921baecfb47dbc38c5</id>
<content type='text'>
Port VIctory's kernel.rs (GPL-3.0-or-later) OutputDebugStringA/W and
TerminateProcess: the title's debug strings go to stderr as "[title] ..."
(LEONIDA_TITLE_DEBUG_OUTPUT=0 silences them; the host still gets them for
an attached debugger), and a TerminateProcess of the game's own process is
logged with its code and caller before it is done, instead of ending
gta6rt without a word.

Co-Authored-By: Claude Opus 5.5 &lt;noreply@anthropic.com&gt;
</content>
</entry>
<entry>
<title>fixup: #6942 tests need fcntl/io and an explicit empty-mask refusal</title>
<updated>2026-11-24T00:43:04+00:00</updated>
<author>
<name>Kam471</name>
<email>115741199+Kam471@users.noreply.github.com</email>
</author>
<published>2026-11-23T16:13:00+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=bb71bb4b4ca113e0750e8838595cf045c1f68678'/>
<id>urn:sha1:bb71bb4b4ca113e0750e8838595cf045c1f68678</id>
<content type='text'>
(cherry picked from commit 6680cd1afce95352e428f2bf7f5772a1ab3cf936)
</content>
</entry>
<entry>
<title>fix: SetThreadGroupAffinity answers a GROUP_AFFINITY of absent cores or groups with the thread's own affinity, served under kernel32, kernelbase and every processtopology API set (retail exe imports it; reported by dadsmallbuk1 on #6942)</title>
<updated>2026-11-24T00:43:03+00:00</updated>
<author>
<name>tedin7</name>
<email>tommasoderosa94@gmail.com</email>
</author>
<published>2026-11-23T15:57:53+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=f35d19cb861d00154dbeadd16035af7a79095d4c'/>
<id>urn:sha1:f35d19cb861d00154dbeadd16035af7a79095d4c</id>
<content type='text'>
(cherry picked from commit fc4de7d2272a43dcdb0cc8eed83d6821c36f117e)
(cherry picked from commit bbee83abfc1afe5b44ef9bc56c52ea517f6afa86)
</content>
</entry>
<entry>
<title>runtime: honor mapped executable argv startup modes (#6117)</title>
<updated>2026-11-23T16:36:08+00:00</updated>
<author>
<name>Hiiva</name>
<email>32042291+Hiiva@users.noreply.github.com</email>
</author>
<published>2026-11-23T16:36:08+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=5cf3dafe3ec90e740f90bf73df9e4417143f5253'/>
<id>urn:sha1:5cf3dafe3ec90e740f90bf73df9e4417143f5253</id>
<content type='text'>
Squash-merged after diff review of PR #6117</content>
</entry>
<entry>
<title>process shim: the game thread that ends a run no longer exits the process before gta6rt finishes</title>
<updated>2026-11-22T23:04:13+00:00</updated>
<author>
<name>AAyberkU</name>
<email>97833630+AAyberkU@users.noreply.github.com</email>
</author>
<published>2026-11-22T23:04:13+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=b6299c9d825c9a03703a636f8205fb70c7028d60'/>
<id>urn:sha1:b6299c9d825c9a03703a636f8205fb70c7028d60</id>
<content type='text'>
end_run signalled g_done and only then read g_running. run_entry wakes on g_done, closes it and clears
g_running, so the game thread could read false and take the "run is already over" path: ExitProcess with
the game's code while main.cpp was still printing "game exited with code N", reporting unimplemented
imports, writing the trace "exit" event and cleaning up TLS clones. The exit code stayed right, but the
lost line made run_startup_cmdline and the other checks that look for it flaky.

end_run now reads g_running before it signals. g_running is set before the game thread starts and is
cleared only after g_exited is claimed and g_done is set, so a read taken before the CAS is true for any
thread that ends a live run. The exit during host shutdown (no run active) still calls ExitProcess, and
so does an exit with no run started, which an "always park the CAS winner" fix would have hung.

process_cmdline_test runs 50 entry points that return 77 on one CPU and fails (exit 77) without the fix.

Co-Authored-By: Claude Opus 5.5 &lt;noreply@anthropic.com&gt;
</content>
</entry>
<entry>
<title>fix(process): close g_done race, guard CreateEventW, and preserve ExitThread code in run_entry</title>
<updated>2026-11-22T18:34:07+00:00</updated>
<author>
<name>totonii</name>
<email>totonicontato@gmail.com</email>
</author>
<published>2026-11-22T18:34:07+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=8d9a50759aecdca281d5ff438b30d385e619c77c'/>
<id>urn:sha1:8d9a50759aecdca281d5ff438b30d385e619c77c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>runtime: RT-136 review follow-up: check the test's setup, say what the returned table is valid for</title>
<updated>2026-11-22T16:10:18+00:00</updated>
<author>
<name>pwu2775-dev</name>
<email>267844174+pwu2775-dev@users.noreply.github.com</email>
</author>
<published>2026-11-22T16:10:18+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=21ea2bb1d01f9d0ac648a0694740eea9c1aad7d0'/>
<id>urn:sha1:21ea2bb1d01f9d0ac648a0694740eea9c1aad7d0</id>
<content type='text'>
process_cmdline_test now checks the return values of _putenv_s/_wputenv_s and says
when _wenviron already exists at startup, so the first-call check cannot pass
silently without exercising the lazy wide-table creation. process.cpp notes that
the returned table is the CRT's own and valid until the next _putenv, as with the
msvcrt.dll original.
</content>
</entry>
</feed>
