xgameruntime: test the XErrorReport export and count it among the looked-up names #182

Open
github-bot wants to merge 1 commit from github-bot/gh-182 into main AGit
Owner

@⁠Andretuta on GitHub · 2026-11-24 02:37 UTC · original
ubiquitarianism:old-pr/9914 → main · +13 −4 · 2 files · 1 commits · draft

Carried over from old PR 9914 by Sunkiller-qc in the original Leonida repository, which went private on 23 Nov 2026. The code is the branch old-pr/9914, exactly that PR's last commit. All carried-over PRs are listed in #17.
Opened as a draft, and the CI runs the opening started were cancelled so 250 PRs don't fill the queue. Re-run CI here when you review it.
Sunkiller-qc: this is your work. Feel free to take it over, by pushing to the branch or opening your own PR and closing this one.


Original description (mentions and #N references are disabled; the numbers refer to the old repository):

Thanks for 6312c05. This adds test coverage for the new export: GetProcAddress serves it, and calling it with its two-argument signature reaches the XErrorImpl callback. It also updates the comment that listed five looked-up names.

Not built or run on my side.

**@⁠Andretuta** on GitHub · 2026-11-24 02:37 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/182) `ubiquitarianism:old-pr/9914` → `main` · +13 −4 · 2 files · 1 commits · draft > Carried over from **old PR 9914** by `Sunkiller-qc` in the original Leonida repository, which went private on 23 Nov 2026. The code is the branch `old-pr/9914`, exactly that PR's last commit. All carried-over PRs are listed in #17. > Opened as a draft, and the CI runs the opening started were cancelled so 250 PRs don't fill the queue. Re-run CI here when you review it. > `Sunkiller-qc`: this is your work. Feel free to take it over, by pushing to the branch or opening your own PR and closing this one. --- Original description (mentions and `#N` references are disabled; the numbers refer to the old repository): Thanks for 6312c05. This adds test coverage for the new export: GetProcAddress serves it, and calling it with its two-argument signature reaches the XErrorImpl callback. It also updates the comment that listed five looked-up names. Not built or run on my side.
Follow-up to 6312c05, which exports XErrorReport for XGameRuntimeInitialize.

- check_run_time_load now asks GetProcAddress for XErrorReport alongside the
  five thunk entry points and checks it is the shim table's function.
- The export is called with its two-argument WINAPI signature (no `this`)
  while the XErrorImpl callback is set, and must reach that callback with the
  HRESULT and message and return S_OK.
- The comment above the run-time entry points mentions the sixth name.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 08:47:55 +00:00
This pull request has changes conflicting with the target branch.
  • runtime/test/xgameruntime_test.cpp
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/182/head:github-bot/gh-182'
git switch 'github-bot/gh-182'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-182'
git switch 'github-bot/gh-182'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-182'
git switch 'github-bot/gh-182'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-182'
git switch 'main'
git merge --squash 'github-bot/gh-182'
git switch 'main'
git merge --ff-only 'github-bot/gh-182'
git switch 'main'
git merge 'github-bot/gh-182'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.