feat(tools): scan a module's GDK runtime method tables #74
No reviewers
Labels
No labels
accessibility
bug
ci
docs
documentation
duplicate
enhancement
fixes issue
good first issue
help wanted
invalid
library request
libs
needs rebase
question
relinker
stale
tools
unblocks title
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Dark3581--AnyBox!74
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/74/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?
@Dark3581 on GitHub · 2026-11-23 05:39 UTC · original
Dark3581:feat/api-impl-scan→main· +320 −0 · 3 files · 1 commits · merged 2026-11-23 05:42 UTCWhat
tools/api_impl_scan.py: a tool to list the GDK runtime method tables a module reaches throughQueryApiImpl, so a title's executable can be scanned the first time it's available. It turns the scratch analysis behind #71 and #73 into a tested tool:QueryApiImpllookup from the name string, follows the stored pointer to the module's call wrapper, and finds every call to that wrapper, directly or through incremental-link jump stubs.rcx/rdx, including thelea rcx,…; mov rdx,rcxform where both are the same;--jsonwrites the same.objdump(--objdumpto choose one). Listing parsing and analysis are pure functions.docs/dev/GAME_TESTING.mdgets a "GDK runtime method tables" section: usage, and the rule that a slot is mapped only when its call sites show what it is.Tested
tools/tests/test_api_impl_scan.py(run by ctest astools_test_api_impl_scan), on a syntheticobjdumplisting:ctest: 78 of 78.python tools/check_conventions.py: ok.Checklist
main; no other open PR implements the same functionspython tools/check_conventions.pypasses (no comments in code, one declaration per export, Conventional Commit subjects)AbxNotImplemented/AbxUnsupported); silent stubs are listed under Silent stubs through a debt fragmentdocs/dev/debt/changes/<branch>.md