Replace the hand-written C++ XMA2/WMA Pro decoder with the Rust decoder
already on main. runtime/CMakeLists.txt builds it at configure time when
cargo is on PATH and links it into gta6rt and acphal_test
(LEONIDA_HAVE_XMA2_DECODER); without cargo, if that build fails, or with
the cl.exe fallback, XMA voices output silence for each packet's frame
count.
The ring engine decodes whole 2048-byte packets: the read offset and the
loop points are used per packet, so a loop plays its end packet in full
and restarts with a fresh decoder at the packet holding the loop start.
The C ABI gains leonida_xma2_decoder_create_hardware (no first-frame drop,
no 64-sample start skip), since the context carries its own skip.
Tested: acphal_test 129 checks (silence) and 125 checks (Rust decoder,
gnullvm build), 0 failures, 3 runs each, clang 23 / mingw x64; cargo fmt
and cargo test (gnullvm); pytest build/docs suites 204 passed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
breadbbbb/rpf9-explorer#15 merged: Core/TtpfReader.cs Patterns[2] now uses the
RDNA2/RbPlus (3, -3) order at bits 6..7 (GFX10_SW_64K_D_RBPLUS_PATINFO), as
tools/ttpf_mips.py already does. The pin also brings #13, merged just before it
(32 kHz Opus durations in 48 kHz frames). docs/textures.md "Next step" drops the
Patterns[2] item.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Replace AtomicVector context visits with cursor-based enumeration and safe pinning. Add deterministic reentrancy and concurrent attach/detach regression tests.
Compatibility: contexts without the private pinning capability are rejected. Win32 WaitRegistration lifetime issues remain outside this commit.
(cherry picked from commit d808cfb538d8a65e24b42a86b89afd22d497b14b)
5d32ddb7 (a docs commit) carried third_party/rpf9-explorer back to 917e9b9, undoing #1313's bump for the C# BCPack
BC1/BC3/BC4/BC5 decode.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
#650, #713 and #732 all pin third_party/rpf9-explorer to 917e9b9, but a merge commit here re-staged the old
checkout (48557ea), so main kept the old pin and rpf9dump didn't build.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every GDK title calls XGameRuntimeInitialize first and builds its async work on
XTaskQueue/XAsync. Add an xgameruntime.dll shim table for those, ahead of the
executable: XGameRuntimeInitialize/Uninitialize (reference counted),
XSystemGetDeviceType (Series X; LEONIDA_DEVICE_TYPE overrides) and
XSystemGetConsoleId (placeholder), plus the 23 XTaskQueue/XAsync functions.
XTaskQueue/XAsync come from microsoft/libHttpClient (MIT), copied unmodified
into third_party/xtaskqueue (task queue only, no HTTP stack); a small pch.h
stand-in lets them build alone. xgameruntime_test drives the table through
the shim registry the way a title boots. Nothing goes online.
Shader pipeline (carve, FSSM unpack, gfx1013 disassembly, RDNA2 to SPIR-V),
asset export via rpf9-explorer's Core (submodule), PE loader and shim
skeleton, and make_game.py, which builds from the user's own copy of the game.
No game data, keys or executables are included.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>