AnyPS5/tools
abderahmane-ai 9e6a6004a5 feat(tools): add an import audit for converted games
A converted game fails at launch on the first system function that no
built library exports, one function per run. tools/import_audit.py reads
the registry written by relinker --registry and classifies every imported
NID in one pass:

- implemented: a built library exports it
- stub: exported, but the whole function calls NotImplemented_nid_no_patch
- absent: no built library exports it, so the loader fails
- module: the import names a file the title ships itself

Exports are read from the built .prx files (ELF dynsym and PE export
table), the same view the loader has. Stubs come from the source tree
through tools/progress.py, and NIDs through tools/nid_names.py. The report
also lists needed libraries without a file and imports found only in a
different library than the one they name. --names adds names from an
aerolib.csv file and never downloads one; --json writes the full result
stamped with the repository commit.

The test builds ELF and PE libraries byte by byte, checks that every
reference lands in exactly one class, and pins the NID of
sceMsgDialogProgressBarSetValue (wTpfglkmv34) as an external anchor.
Registered in CTest as import_audit.
2026-10-08 15:47:46 +02:00
..
hw-oracle fix(oracle)!: require explicit float modes 2026-10-07 14:58:28 +05:00
tests feat(tools): add an import audit for converted games 2026-10-08 15:47:46 +02:00
check_conventions.py Merge pull request #1420 from Amirtheshwaran/fix/check-conventions-windows-encoding 2026-10-08 19:35:36 +13:00
check_test_registration.py ci: keep the not-run list per platform 2026-10-08 12:02:39 +02:00
import_audit.py feat(tools): add an import audit for converted games 2026-10-08 15:47:46 +02:00
nid_names.py fix(tools): count function-try-block definitions in nid_names.py 2026-10-06 09:00:09 +03:00
package_release.py refactor(libs): drop replacements of modules that titles ship themselves 2026-10-06 07:11:33 +02:00
pr_overlap.py Merge pull request #1229 from hashaam1217/fix/pr-overlap-older-git 2026-10-08 18:28:28 +13:00
progress.py Merge pull request #1137 from Sanjaysrinivas/fix/progress-shared-sources 2026-10-08 18:29:17 +13:00
rdna_isa.txt feat(tools): add progress map for system libraries and shader instructions 2026-09-27 18:21:34 +02:00