<feed xmlns='http://www.w3.org/2005/Atom'>
<title>npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/runtime/test/loader_test.cpp, branch feat/acphal-xma2-decoder</title>
<subtitle>[no description]</subtitle>
<id>https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/atom?h=feat%2Facphal-xma2-decoder</id>
<link rel='self' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/atom?h=feat%2Facphal-xma2-decoder'/>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/'/>
<updated>2026-11-24T02:50:56+00:00</updated>
<entry>
<title>pe_loader: a compat DLL Windows cannot load is refused without a "Bad Image" box</title>
<updated>2026-11-24T02:50:56+00:00</updated>
<author>
<name>natterman12</name>
<email>92529018+natterman12@users.noreply.github.com</email>
</author>
<published>2026-11-24T02:50:56+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=682fd0561cd5e649d199adb9633b81b26baf26a6'/>
<id>urn:sha1:682fd0561cd5e649d199adb9633b81b26baf26a6</id>
<content type='text'>
resolve_compat() calls LoadLibraryExW on a file from LEONIDA_COMPAT_DIR. For
a file Windows cannot map (truncated, wrong machine, not a PE image) the
system raises a modal "Bad Image" hard-error box, and LoadLibraryExW does
not return until someone clicks OK. The loader reports that failure itself
one line later, so the box only stalls it: gta6rt hangs on a headless
machine, and loader_test, which writes such a file on purpose, waits for a
click in every unattended ctest run.

The load now runs with SEM_FAILCRITICALERRORS set on the calling thread, and
the thread's previous error mode is restored afterwards. The Windows error
code is read before the mode is put back.

loader_test checks that the mode comes back unchanged, that the message
still carries the error code, and that the refusal does not wait on a box.

Co-Authored-By: Claude Fable 5.2 &lt;noreply@anthropic.com&gt;
</content>
</entry>
<entry>
<title>runtime: opt-in compat-module directory (LEONIDA_COMPAT_DIR)</title>
<updated>2026-11-23T19:51:59+00:00</updated>
<author>
<name>Rafa23xz</name>
<email>174075006+Rafa23xz@users.noreply.github.com</email>
</author>
<published>2026-11-23T19:51:59+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=7fc6fa72851362875b7105087030ac651db92b35'/>
<id>urn:sha1:7fc6fa72851362875b7105087030ac651db92b35</id>
<content type='text'>
When LEONIDA_COMPAT_DIR names a folder, an import whose DLL is a file
there binds to that DLL's export. Windows loads it from the full path
(LoadLibraryExW, DLL-load-dir + System32 search, never the game folder),
so it takes no manual static-TLS slot. The step comes before shims,
bundled modules and the host, and the DLL owns all imports of its
module: a missing symbol binds to the unimplemented thunk, not a shim.
Unset or empty: no change.

Measured on the 1.0.2.1 executable: --dry-run goes from 20 unimplemented
imports (AcpHal 9, chad 5, xapu 5, XCRDAPI 1) to 0 with the four
matching omonkeyz/xbox-emulator crates in the folder (and their
TOMBOX_* static initializers turned off; see runtime/README.md).

loader_test: five cases with a synthetic OS-loadable DLL (no game data).

AI-assisted (Claude Code).
</content>
</entry>
<entry>
<title>pe_loader: a static load's DllMain gets a non-NULL lpvReserved (#7307)</title>
<updated>2026-11-23T16:30:32+00:00</updated>
<author>
<name>cynbun</name>
<email>74268930+cynbun@users.noreply.github.com</email>
</author>
<published>2026-11-23T16:30:32+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=e0816d6af23f42353a3939cf4c228675c6e31305'/>
<id>urn:sha1:e0816d6af23f42353a3939cf4c228675c6e31305</id>
<content type='text'>
Loader::initialise(Module&amp;) called every DllMain(DLL_PROCESS_ATTACH) with
lpvReserved NULL. Microsoft's DllMain reference: "If fdwReason is
DLL_PROCESS_ATTACH, lpvReserved is NULL for dynamic loads and non-NULL for
static loads." The executable gta6rt maps and the DLLs it imports are the
static case; a run-time LoadLibrary (load_runtime_module) and a
GetProcAddress forwarder (resolve_module_export) are dynamic.

Each Module now records whether it was mapped inside a run-time load, and a
static module's DllMain gets a pointer to a CONTEXT captured for the call.
TLS callbacks and the process detach in ~Loader (an unload: NULL) are
unchanged.

loader_test: a host load() + initialise() must give a non-NULL lpvReserved
(fails on main), the same image through load_runtime_module NULL. The
lifecycle observer checks lpvReserved on detach only.

Co-authored-by: Claude Opus 5.5 &lt;noreply@anthropic.com&gt;</content>
</entry>
<entry>
<title>Revert #2490: its console-ABI list proxy breaks run_tiny_frame (please rebase and split)</title>
<updated>2026-11-23T09:42:53+00:00</updated>
<author>
<name>ItsNotRexed</name>
<email>300290919+ItsNotRexed@users.noreply.github.com</email>
</author>
<published>2026-11-23T09:42:53+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=57c175391db7b70ac2ec8dc7a7bf04afec52cb88'/>
<id>urn:sha1:57c175391db7b70ac2ec8dc7a7bf04afec52cb88</id>
<content type='text'>
With it, d3d12_xs reads list slot 48 as the console's IASetVertexBuffers, so the PC-shaped fixture list's
ClearRenderTargetView never runs and Close fails. The branch also changes runtime/src/pe_loader.cpp and carried
committed conflict markers in docs/fssm_crosscheck.md. Its docs rows go with it.

Co-Authored-By: Claude Opus 5.5 &lt;noreply@anthropic.com&gt;
</content>
</entry>
<entry>
<title>Merge origin/main: DXGI device fields coexist with the console-ABI device state</title>
<updated>2026-11-23T03:39:59+00:00</updated>
<author>
<name>Nolan Cotter</name>
<email>186326284+NolanCotter@users.noreply.github.com</email>
</author>
<published>2026-11-23T03:39:59+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=fa5f26db8eafd2cc27f627b68c0a5a5949bcf2ff'/>
<id>urn:sha1:fa5f26db8eafd2cc27f627b68c0a5a5949bcf2ff</id>
<content type='text'>
</content>
</entry>
<entry>
<title>loader/tools: review fixes for import routing and the inventory</title>
<updated>2026-11-22T23:41:17+00:00</updated>
<author>
<name>Nolan Cotter</name>
<email>186326284+NolanCotter@users.noreply.github.com</email>
</author>
<published>2026-11-22T19:46:24+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=7cd6aa7c934268d941c1437dbc507f80080c957d'/>
<id>urn:sha1:7cd6aa7c934268d941c1437dbc507f80080c957d</id>
<content type='text'>
pe_loader: resolve() and resolve_forwarder() key the DLL name with
dll_key() — lower-case, trailing '.' dropped, ".dll" added when there
is no extension — the file-name rule LoadLibrary applies. Without it an
import naming "GameInput" or "gameinput.dll." missed the shim and
owns_dll lookups while LoadLibraryExA still bound a host namesake.

registry: xaudio2_9.dll ordinals 8-10 classify as hresult (host table
measured: XAudio2CreateV2_9 / WithVersionInfo / WithSharedContexts);
the redist's ordinal table is unconfirmed and stays other.

import_inventory: classify parity for the #1 ordinals; the delay-import
directory (entry 13) is read with the loader's checks; the descriptor
table stops at Name == 0 and unreadable names fail like read_string;
host-bound imports report as host instead of unimplemented thunk
(owns_dll ported); thunk tables deduplicate by RVA under a global cap.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin &lt;158243242+devin-ai-integration[bot]@users.noreply.github.com&gt;
</content>
</entry>
<entry>
<title>Merge pull request #3667 from kotorvr</title>
<updated>2026-11-22T22:03:18+00:00</updated>
<author>
<name>ItsNotRexed</name>
<email>300290919+ItsNotRexed@users.noreply.github.com</email>
</author>
<published>2026-11-22T22:03:18+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=8bbb3ba6cee29442dfe5f2fa7127686e8011bd65'/>
<id>urn:sha1:8bbb3ba6cee29442dfe5f2fa7127686e8011bd65</id>
<content type='text'>
</content>
</entry>
<entry>
<title>loader: the address lookup reads its own table, not the module vector</title>
<updated>2026-11-22T21:02:46+00:00</updated>
<author>
<name>kotorvr</name>
<email>332716892+kotorvr@users.noreply.github.com</email>
</author>
<published>2026-11-22T21:02:46+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=f3442f6cbddbdb20b9c3a28e9bb58f30936721f5'/>
<id>urn:sha1:f3442f6cbddbdb20b9c3a28e9bb58f30936721f5</id>
<content type='text'>
lookup_in_loader walked Loader::modules() with no lock while map_image
appends to it under Loader::mutex_. The lookup runs on any thread: behind
the RtlPcToFileHeader redirect on every C++ throw from a mapped image, and
for trace and stop lines. A throw during another thread's run-time load
read a vector that was being reallocated.

find_address reads a table of (base, size, name) under a leaf lock;
map_image adds an entry once the image's memory exists.

loader_test: lookups from one thread while another loads 300 images. With
the old code it crashes under AddressSanitizer at the vector read.

Co-Authored-By: Claude Fable 5.2 &lt;noreply@anthropic.com&gt;
</content>
</entry>
<entry>
<title>Merge pull request #3242 from Victor</title>
<updated>2026-11-22T20:16:07+00:00</updated>
<author>
<name>ItsNotRexed</name>
<email>300290919+ItsNotRexed@users.noreply.github.com</email>
</author>
<published>2026-11-22T20:16:07+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=23f9b9de71f7eb94a626dcdd3fb1b226044adca0'/>
<id>urn:sha1:23f9b9de71f7eb94a626dcdd3fb1b226044adca0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Merge pull request #3119 from Ash Hopkins</title>
<updated>2026-11-22T20:14:56+00:00</updated>
<author>
<name>ItsNotRexed</name>
<email>300290919+ItsNotRexed@users.noreply.github.com</email>
</author>
<published>2026-11-22T20:14:56+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=706111e1702022181d367ff2cdd89f801ad857e1'/>
<id>urn:sha1:706111e1702022181d367ff2cdd89f801ad857e1</id>
<content type='text'>
</content>
</entry>
</feed>
