mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:55:52 +01:00
[PR #1144] [MERGED] runtime: xapu.dll as a command queue with the console's layouts (RT-XAPU-CONNECT-LAYOUTS) #1179
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#1179
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/1144
Author: @nicoco23
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/26/2026
Merged by: @aslan2142
Base:
main← Head:xapu-connect-layouts📝 Commits (4)
9c6cbbcruntime: xapu.dll as a command queue with the console's layouts, audio silent370e52bMerge branch 'main' of https://github.com/ubiquitarianism/leonida into xapu-connect-layouts19559fescripts: build xapu.cpp in the cl.exe fallback (review of #1144)6ee7ef8Merge branch 'main' of https://github.com/ubiquitarianism/leonida into xapu-connect-layouts📊 Changes
6 files changed (+610 additions, -160 deletions)
View changed files
📝
docs/audio_hal_exe_calls.md(+18 -0)📝
runtime/CMakeLists.txt(+4 -1)📝
runtime/shims/xapu_chad.cpp(+5 -118)➕
runtime/shims/xapu_queue.cpp(+361 -0)📝
runtime/test/xapu_chad_test.cpp(+221 -40)📝
scripts/build_runtime.ps1(+1 -1)📄 Description
Claimed in the coordination issue as: RT-XAPU-CONNECT-LAYOUTS
xapu.dll moves out of xapu_chad.cpp into xapu.cpp and becomes a command queue with the console's layouts: the XApuConnect input and output, 24-byte command ids, 0x50-byte results, the 0x8AC81000+ error codes, and the frame count of an Opus packet's TOC byte (RFC 6716 section 3.1). The audio stays silent, nothing is decoded. chad.dll is unchanged.
This replaces the xapu half of #277 (piyonchu's draft, which needs a rebase); the chad half stays as it is. Credit to piyonchu for the original shim.
The layouts are facts from Marvisak/VIctory (GPL-3.0-or-later, crates/victory-hle/src/modules/apu.rs at ffe310e), no code is copied. See docs/related_projects.md.
Tested: xapu_chad_test via ctest on Windows 11, 100% success. No game files, no GPU.
AI-assisted: yes (Claude Code).
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.