paavohtl Claude Opus 4.6 commited on
Commit
e76c9cf
·
1 Parent(s): 0b09583

feat: full Rust replacement for DrawSpriteGlobal and DrawSpriteLocal

Browse files

Replace both sprite draw functions (0x541FE0, 0x542060) with Rust
implementations that enqueue RenderCommands to the downward-growing
render queue buffer. Add RenderQueue/RenderCommand types with an
alloc_entry() helper, and a new usercall_trampoline macro arm for
2 registers + 4 stack params.

Verified: 96 PASS / 0 FAIL in replay test.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

5 files changed +188
Files changed (5)
crates/openwa-types/src/lib.rs+1
crates/openwa-types/src/render.rsAdded+68
crates/openwa-wormkit/src/hook.rs+22
crates/openwa-wormkit/src/replacements/mod.rs+2
crates/openwa-wormkit/src/replacements/sprite.rsAdded+95