Repository navigation
Conversation
…til XUserAddAsync (RT-382) The GDK reference says XUserFindForDevice cannot return a user handle to a user that was not signed in with a call to XUserAddAsync. Track whether the offline user was added (XUserAddAsync, or the local user by id) and answer E_GAMEUSER_USER_NOT_FOUND with no handle before that. The HRESULT is an assumption: the reference names no code. docs/runtime_imports.md updated; the offline test asks before and after the add. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> # Conflicts: # docs/runtime_imports.md # runtime/test/xgameruntime_offline_test.cpp
Shaders: walk a lane-mask diagram once in vars and given
|
Independent verification on this machine (Windows 11, MSVC 19.44.35226), with a negative control that bites on both tests. 1. It applies. 2. With the branch, both tests pass: 3. The control - revert both shims, keep the test: That assertion is the change: before this branch, the offline shim answered a per-client query for a user that had not signed in yet, instead of failing with What the change is, from the diff and the doc it updates: What I did not test: the rest of the offline surface, and the Why I am commenting: I verify open pull requests that replay onto current Written with an AI assistant. |
|
The change is still relevant: current |
Original description (mentions and
#Nreferences are disabled; the numbers refer to the old repository):Resubmission of
#5166(closed during repo transfer/purge at 22:47 UTC). Mergeable with current main with zero conflicts.Claimed in the coordination issue as: RT-382, https://github.com/ItsNotRexed/Leonida/issues/5156#issuecomment-7095909064 (found by
@Roberto0953)What and why
XUserFindForDevice(XUserDeviceImpl slot 3,device_find_userinruntime/shims/xgameruntime_offline.cpp) handed out anXUserHandlebefore the title had calledXUserAddAsync. The GDK reference says it "cannot return a user handle to a user that hasn't been signed in with a call to XUserAddAsync". A title that probes its devices before signing in saw a user it never added, which can change its first-boot sign-in flow.xgameruntime_user.cpp: an atomic flag, set whenXUserAddAsynccompletes (and when the local user is added by id), exposed to the other shim asxgameruntime_user_was_added().device_find_user: before the flag is set it writes no handle and answersE_GAMEUSER_USER_NOT_FOUND(0x89245104, the code the user shim already uses); after it, the handle as before.docs/runtime_imports.md: the "Devices" paragraph states the rule.Tested
Windows 11, MSVC 19.44 + Ninja, RelWithDebInfo.
xgameruntime_offline_test: passes 32/32 checks (fails 4 of 32 on merge base).ctest -R xgameruntime: 8/8 passed.@shdann,@gertify,@Atomic258,@searyecheesepeacefulon#5166.Synthetic probes only; no game data.
AI-assisted: yes
Checklist