tests: call the saved QueryApiImpl through load_real_query() #2204
No reviewers
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows!2204
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/2204/head"
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?
@MasterDomino on GitHub · 2026-11-25 04:37 UTC · original
MasterDomino:tests/atomic-query-call→main· +2 −2 · 2 files · 1 commits · merged 2026-11-25 04:43 UTCWhat
tests/startup_gamesave_read_async.cppandtests/startup_gamesave_submit.cppnow call the savedQueryApiImplthroughload_real_query()instead of callingreal_querydirectly.Why
#2166 made
real_queryastd::atomic<QueryApi>insrc/startup_stubs/runtime_proxy.cpp. Calling an atomic function pointer directly is ambiguous on MSVC 19.44 (Visual Studio 2022 17.14). Both thevolatileand the non-volatileconversion operators ofstd::atomicare candidates, so the release build of currentmainstops with:load_real_query()is the acquire load that the proxy already uses for every other call. Behaviour is unchanged.Tests
Windows 11 build 26300, MSVC 19.44.35221,
releasepreset. Base:mainat19e04be9.startup_gamesave_submit_{controlled,system}andstartup_gamesave_read_async_{controlled,system}. The system cases ran against the installed gaming runtime (Gaming Services 39.118.30001.0) and were not skipped.Refs #2166
🤖 Generated with Claude Code
@tedin7 on GitHub · 2026-11-25 04:43 UTC · original · reviewed
Review of head
1d82ff22ce8bfec7343b6459169801316c1514c4: 0 P1, 0 P2.real_queryisstd::atomic<QueryApi>. Calling it directly is ambiguous on MSVC (C3066).load_real_query()is the acquire load already used by the proxy, so behaviour is unchanged and the two edits match the sibling call sites.Commands executed locally:
python3 tests/docs_links_check.py: pass (405 links)python3 tests/bidi_controls_check.py: passgit diff --check origin/main...HEAD: cleanx2w_pipe.py win2025 2204 --scope direct --targets startup_gamesave_submit,startup_gamesave_read_async --regex '^startup_gamesave_(read_async|submit)_': both builds PASS, controlled tests pass. The_systemvariants skip (capability skip, not counted as a pass).real_query(...)call intests/startup_gamesave_submit.cppand ran the same target on Windows: build fails witherror C3066: call to an object of this type is ambiguous. Reverted.Build and test on Windows: pass.AI-assisted; commands listed were executed locally.