mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 21:50:52 +01:00
[PR #1137] xgameruntime: XUserFindForDevice answers E_GAMEUSER_USER_NOT_FOUND until XUserAddAsync (OLD-9860 / RT-382) #1171
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#1171
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/1137
Author: @ambroseautomation
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:carry/old-9860-xuser-find-device📝 Commits (1)
d93d8edxgameruntime: XUserFindForDevice answers E_GAMEUSER_USER_NOT_FOUND until XUserAddAsync (RT-382)📊 Changes
4 files changed (+40 additions, -7 deletions)
View changed files
📝
docs/runtime_imports.md(+5 -2)📝
runtime/shims/xgameruntime_offline.cpp(+9 -1)📝
runtime/shims/xgameruntime_user.cpp(+8 -0)📝
runtime/test/xgameruntime_offline_test.cpp(+18 -4)📄 Description
Claimed in the coordination issue as: OLD-9860 (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7141626851)
What and why
Carries forward
old-pr/9860(draft #126, original commit authorSalim Hammamipreserved; indexed in #17; RT-382), rebased cleanly onto currentmain(6293c1c4f).Matches the GDK
XUserFindForDevicecontract ("cannot return a user handle to a user that hasn't been signed in with a call toXUserAddAsync"):g_user_addedinruntime/shims/xgameruntime_user.cpp, set onXUserAddAsyncand onXUserAddByIdWithUiAsyncfor the local user).XUserFindForDevice(runtime/shims/xgameruntime_offline.cpp) clears*out = nullptrand returnsE_GAMEUSER_USER_NOT_FOUNDuntil the user has been added, then returns a newXUserHandleafterward.docs/runtime_imports.md(marking the HRESULT choice as an explicitASSUMPTION) and extendsruntime/test/xgameruntime_offline_test.cppto assert behavior both before and afterXUserAddAsync.Tested
xgameruntime_offline_test.exenatively on Windows 11 with MSVC (/std:c++20 /EHsc /W4 /permissive- /utf-8 /O2):xgameruntime_offline_test: 72 checks, 0 failures.python -I tests/test_docs_links.py: 16 tests, OK.python -I scripts/check_no_game_data.py docs/runtime_imports.md runtime/shims/xgameruntime_offline.cpp runtime/shims/xgameruntime_user.cpp runtime/test/xgameruntime_offline_test.cpp: exit 0 (no game data).GPUs tested: n/a (CPU/OS runtime shim; built and tested on Windows 11 Pro 64-bit, MSVC VS 18)
AI-assisted: yes
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed. (n/a —xgameruntimeshim)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.