startup: optional -TraceApi / X2W_TRACE_API switch on run.ps1 #2351
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#2351
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?
@cursor[bot] on GitHub · 2026-11-25 13:14 UTC · original
Context
Account-picker and other runtime-proxy digs need
$env:X2W_TRACE_API='1'in the same PowerShell process beforetools/startup/run.ps1.-TraceCallsis a different switch and does not enable method-levelx2w-apilines. Contributors keep missing this (see #870 threads and the account-picker Y notes).Related runtime work: #2349. Refs #870.
Done when
run.ps1accepts a clear opt-in (for example-TraceApi) that setsX2W_TRACE_API=1in the child environment the same way other flags set env vars today.docs/startup-runtime.md(or the run.ps1 comment block) states that-TraceCalls≠ TRACE_API, and thatprovider … proxiedis the decisive signal even when TRACE_API is off.Acceptance command
If you add a tiny pure check that parses
run.ps1for the new parameter and the env assignment, register it in CMake/Python CI like the other script checks.Negative control
Invoking
run.ps1without the new switch must not setX2W_TRACE_API. Do not change FakeUser / proxy behavior.Out of scope
Fixing the account-picker Y stall itself. Title-neutral; no game files.
@RavenCurseBurg on GitHub · 2026-11-25 13:17 UTC · original
I'll take the launcher switch and its contributor documentation. I'll exercise opt-in, default and inherited-environment behavior with a source-built child process so the check can run without a title.