mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 22:50:53 +01:00
[PR #458] [MERGED] store: offline *Async slots start and complete their XAsyncBlock with E_FAIL (RT-STORE-ASYNC-COMPLETE) #509
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#509
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/458
Author: @Kokonotcu
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/24/2026
Merged by: @QemmHD
Base:
main← Head:pr/store-async-complete📝 Commits (1)
1c69700store: offline *Async slots start and complete their XAsyncBlock with E_FAIL (M11)📊 Changes
2 files changed (+55 additions, -16 deletions)
View changed files
📝
runtime/shims/xgameruntime_store.cpp(+35 -14)📝
runtime/test/xgameruntime_store_test.cpp(+20 -2)📄 Description
Claim: RT-STORE-ASYNC-COMPLETE (#14).
What was wrong: the offline
XStoreImpltable answers every*Asyncslot withoffline_failure<Slot>. That returnsE_FAILstraight away and never starts or completes the caller'sXAsyncBlock. A caller that already queued its block and then waits on it (XAsyncGetStatus(block, true), or the completion callback on its task queue) never wakes up: the store call is a silent hang instead of an offline failure.What changed: each
*Asyncslot except 82 (XStoreShowGiftingUIAsync, whose block position I have not confirmed; it stays as before) now usesoffline_failure_async<Slot, AsyncArg>. It finds the block by its position in that function's GDK signature and runs it throughXAsyncRunwith a work callback that returnsE_FAIL. The block starts, completes on its queue, andXAsyncGetStatusreportsE_FAIL. A null block returnsE_POINTER.The matching
*Result/*ResultSizeslots keep returningE_FAIL, so a caller reading the result after completion gets the same offline answer as before.Block position per slot (GDK
XStore.h): 33(3), 35(5), 37(4), 40(4), 43(5), 49(5), 51(2), 53(6), 58(4), 60(4), 62(4), 71(3), 73(4), 75(3). Slot 53 takes its block as the 6th argument, which is passed on the stack, and the test covers that case.Tests (
xgameruntime_store_test, new checks):XAsyncBlock, which finishes withXAsyncGetStatus(..., true) == E_FAIL;Result) still returnsE_FAIL.Tested on Windows 10, i7-11800H, RTX 3080 Laptop (no GPU needed), on
main8f481cf16:xgameruntime_storepasses (27 checks).🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.