feat(xgameruntime): add the XLauncher and XGameUI HLE #42
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Freminet--ScarlettX!42
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-42"
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?
@wildheathen on GitHub · 2026-11-21 19:28 UTC · original
wildheathen:feat/xgameui-xlauncher→main· +917 −0 · 4 files · 1 commits · openSummary
Adds the
XLauncherandXGameUIfunctions (XLauncher.h,XGameUI.h) toxgameruntimeas an offline HLE. Nothing is drawn: every system window completes itsXAsyncBlockimmediately, as if the player had dismissed it.XLaunchUrivalidates the URI, logs it whenSCARLETTX_TRACEis set and returnsS_OKwithout opening anything.XGameUiShowMessageDialogAsync/Resultcompletes with the default button;XGameUiShowErrorDialogAsync/Result.XGameUiSetNotificationPositionHint. They check the documented required arguments (async block, user,_In_z_strings).XGameUiShowPlayerPickerAsync/ResultCount/Resultreturns the pre-selected players, capped atmaxSelectionCount.XGameUiShowTextEntryAsync/ResultSize/ResultreturnsdefaultTexttruncated tomaxTextLength(1024 when 0 or for a password scope), and the in-game virtual keyboard lifecycle (XGameUiTextEntryOpen/Close/GetState/GetExtents/UpdatePositionHint/UpdateVisibility). The HLE keyboard never receives input, so the text and the change type never move, andmaxLengthabove 32K isE_INVALIDARGas documented.Enums are exposed as
uint32_tplus constants. Signatures and values come from the public reference pages (learn.microsoft.com,gdk-2610); I re-read theXGameUiTextEntry*struct and enum pages against the header before opening this.Layout
New files, so the change does not overlap the open XUser / XGameSave / XMem work:
src/shims/xgr_gameui.cpp(registered inCMakeLists.txt) andtests/test_xgameui.cpp(newtest_xgameuitarget, which signs in the default user to get a realXUserHandle). The header gets one hunk, a new// XLauncher.h+// XGameUI.hsection;xgameruntime_shim.cppandtest_xgameruntime_abi.cppare untouched.Verification
test_xgameuipasses and everything else passes except the three tests that already fail on an unmodifiedorigin/main(test_boot_hello_scarlett,test_boot_rt_showcase,test_d3d12_guest_texture; see #1 and #2).View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.