Repository navigation
app, docs: classify census imports as the loader binds - #84
Open
PrivacyOnion wants to merge 1 commit into
Open
PrivacyOnion wants to merge 1 commit into
PrivacyOnion wants to merge 1 commit into
Conversation
This was referenced Nov 26, 2026
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.
What and why
Use the loader census, shared title-DLL filter, and built-in stub table to classify imports. The table shows HLE, host, title DLL, table-stubbed, and missing imports.
--missinglists missing and table-stubbed imports separately.Each folder is an independent title scanned without recursion. An explicit file is one image with no title DLLs available.
--strictdisables host pass-through.JSON keeps
xtp-census 1and addstitleandstubbedcounters to the totals and DLL rows, plus a top-levelstubbedarray with the same row shape asmissing.Fixes: #76
Depends on: none
Area
App and docs. The diff spans 530 changed lines because it replaces the CLI's classification and report aggregation and adds synthetic image coverage for both report formats and independent title folders.
Tests
cargo xtask pr-checkpasses on my machine with--skip testNew or changed behaviour has tests that need no game files, or I explain below why it cannot
Ran on a title: no (the census reads the folder's images; nothing runs)
cargo test -p xtp --locked: 36 unit tests and the four integration tests pass, the new census tests among them (a title DLL that serves an import, an ordinal the stub table names and a title DLL serves, a table-stubbed ordinal, a missing import, independent folders, the file and folder rules).cargo test -p xtp-loader --lib census: 4 passed.On the title folder of build 1.0.2.1 (18 images),
xtp census --missinggives:mainThe 68 are the exports of three DLLs the title ships in its folder. The 2 stubbed ones are
oleaut32.dllordinals 4 and 6. The total falls by 33 becausemaincounted a function once per distinct (name, hint) pair, so a function imported with different hints by several images counted more than once (for exampleapi-ms-win-core-file-l1-1-0.dll: 41 onmain, 24 distinct names). This PR counts eachdll!nameonce.Provenance
Read the issue, contributor docs, and existing XTP CLI, loader, HLE, PE, and test code. No XCL or AnyPS5 source was read.
AI assistance: AI coding tools wrote this change and its tests, mainly OpenAI Codex.
Checklist
<area>: <summary>; one topic; under 400 changed lines, or the reason is above