Repository navigation
runtime: trampoline xgameruntime QueryApiImpl for pre-attach caches - #5
Open
SimSalabimse wants to merge 3 commits into
Open
SimSalabimse wants to merge 3 commits into
SimSalabimse wants to merge 3 commits into
Conversation
IAT/GPA rewrites leave a QueryApiImpl pointer resolved before proxy attach as the real export, so FakeUser / TRACE_API never see providers on that path. Install an absolute-JMP at xgameruntime!QueryApiImpl after attach (stolen prologue stub for real_query); leave unrelated same-named exports alone. Refs R0Y00#870. Fixes R0Y00#2350. Co-authored-by: SimSalabimse <SimSalabimse@users.noreply.github.com>
Nested Guard::~Guard cannot access an enclosing-function local under MSVC. Use a self-contained SrwExclusive that owns the SRWLOCK pointer. Co-authored-by: SimSalabimse <SimSalabimse@users.noreply.github.com>
ce75 showed tip code with zero install/refuse lines because xgameruntime.dll never mapped; silent retries made that indistinguishable from a wrong deploy. Log rate-limited pending while the DLL is missing, abort on VirtualAlloc / VirtualProtect failure, note Ldr loads of xgameruntime.dll, and emit a one-shot after a 30s attach window. Co-authored-by: SimSalabimse <SimSalabimse@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Change
Account-picker TRACE_API still shows zero
QueryApiImpl/provider … proxiedafter the scoped package GPA patch and after the bound delay-IAT rewrite (R0Y00#2349). AQueryApiImplpointer resolved before GameInput/runtime_proxyattach stays the real export forever: IAT/GPA rewrites do not touch already-held function pointers, so FakeUser never sees providers on that path.This change installs an absolute-JMP trampoline at
xgameruntime.dll!QueryApiImplafter the proxy attaches (stolen-prologue stub becomesreal_query). Unrelated modules that also exportQueryApiImpl(the fixture decoy) are not patched. An unknown prologue is left alone and logged once.Follow-ups on this branch:
8fa334b3— MSVC C2326 Guard fix (SrwExclusive)1e9f0f96— after hostce75(8fa334b3tip, zero install/refuse): rate-limitedexport trampoline pending: xgameruntime.dll not loaded yet,abortedon VirtualAlloc/VirtualProtect, Ldrxgameruntime.dll load noticed, and a one-shotnever loaded after 30s attach window(orstill incompleteif seen)Refs R0Y00#870. Fixes R0Y00#2350 (done-when for the trampoline itself; host may still show the DLL never loads).
AI-assisted.
Note: This is the fork self-PR. Prefer the upstream PR against
R0Y00/Xbox2Windowswhen available (same head branch).Verification
On Windows after pull of
1e9f0f96:Retest
Confirm
build=/git log -1 --format=%his1e9f0f96. Then:Expect at least
pendingearly; by ~30 s eitherinstalled,aborted/refused, ornever loaded after 30s attach window. If the last fires with noload noticed, the title never mappedxgameruntime.dllon this picker path — next claimable is force-load / alternate sign-in / PE import proof, not more JMP work and not FakeUser slot-7.Checklist