Skip to content

feat(libSceAgcDriver): declare 16 callable exports - #13205

Merged
adriadam10 merged 11 commits into
boykopovar:mainfrom
kyon-eth:feat/agc-driver-320-exports
Oct 30, 2026
Merged

adriadam10 merged 11 commits into
boykopovar:mainfrom
kyon-eth:feat/agc-driver-320-exports

Conversation

@kyon-eth

@kyon-eth kyon-eth commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

What

Declare 16 additional libSceAgcDriver callable exports. Each is a throwing placeholder; signatures and behavior are unverified. The original 16 NIDs occur in both version-labelled images but are not listed in the pinned public 3.20 catalogue for this library. Image labels do not independently authenticate firmware provenance. No game unblock is claimed.

The 11 PaDebug candidates were removed because their provider routing to this library is not established.

Six other candidates are covered by #13151 and are excluded here. A merge preview with its head f2d71a82c7926bf3a838007a6b7ffc68dbab7cfe is clean.

Tested

  • On the updated head, rebuilt the export source and verified all 16 retained aliases and absence of all 11 removed aliases in the patched macOS export trie. The public-header audit passed.

  • macOS x86-64: compiled and linked the two relevant source files from the combined merge preview; all 22 selected and excluded NIDs appear once in its patched dynamic export table. This uses an aborting placeholder shim and dynamic lookup; it does not exercise runtime behavior or constitute a full production-library build.

  • Checked conventions, whitespace, current-main provider collisions and open PR overlap. The scanner could not fully compare the shared debt file against 58 PRs that conflict with main; for each, manual NID comparison found no matching added export and a merge preview introduced no conflict beyond those already present against main.

  • No Linux, Windows, console, GPU or game run was performed.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes

@github-actions

github-actions Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

Progress report (9605300 → 1fd299c)

📉 System libraries: 26.93% (-0.01%, +16 declared functions)

🆕 16 declared as stubs
Library Name
libSceAgcDriver libSceAgcDriverUnknown_6WO4CscVnfM_nid_no_patch
libSceAgcDriver libSceAgcDriverUnknown_6v_minus_D6CQHA4Y_nid_no_patch
libSceAgcDriver libSceAgcDriverUnknown_8CXPPlNmvIc_nid_no_patch
libSceAgcDriver libSceAgcDriverUnknown_Cia3HgY0WiY_nid_no_patch
libSceAgcDriver libSceAgcDriverUnknown_DGN_plus_IaHNR8o_nid_no_patch
libSceAgcDriver libSceAgcDriverUnknown_EqwPDQyh_plus_Ec_nid_no_patch
libSceAgcDriver libSceAgcDriverUnknown_IGYqP_plus_WKCgc_nid_no_patch
libSceAgcDriver libSceAgcDriverUnknown_LgctzJSGy7s_nid_no_patch
libSceAgcDriver libSceAgcDriverUnknown_NmE3PfE211o_nid_no_patch
libSceAgcDriver libSceAgcDriverUnknown_O144kUYDSBo_nid_no_patch
libSceAgcDriver libSceAgcDriverUnknown_gpF0LZ3_plus_19c_nid_no_patch
libSceAgcDriver libSceAgcDriverUnknown_mxyUaQfPgb8_nid_no_patch
libSceAgcDriver libSceAgcDriverUnknown_oFb2hMcoJa4_nid_no_patch
libSceAgcDriver libSceAgcDriverUnknown_sW7yp7NVlrk_nid_no_patch
libSceAgcDriver libSceAgcDriverUnknown_tD2ECNSuTQQ_nid_no_patch
libSceAgcDriver libSceAgcDriverUnknown_wxdcyVqXJEY_nid_no_patch

Changed libraries (implemented exports)

Library Before After Change
libSceAgcDriver 91/130 (70.00%) 91/146 (62.33%) -7.67%

@github-actions

github-actions Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.

Pull request Shared files not compared
PR 2434 docs/dev/debt/libSceAgcDriver.md
PR 4448 docs/dev/debt/libSceAgcDriver.md
PR 4449 docs/dev/debt/libSceAgcDriver.md
PR 5925 docs/dev/debt/libSceAgcDriver.md
PR 6185 docs/dev/debt/libSceAgcDriver.md
PR 6186 docs/dev/debt/libSceAgcDriver.md
PR 6194 docs/dev/debt/libSceAgcDriver.md
PR 6223 docs/dev/debt/libSceAgcDriver.md
PR 6273 docs/dev/debt/libSceAgcDriver.md
PR 6280 docs/dev/debt/libSceAgcDriver.md
PR 6300 docs/dev/debt/libSceAgcDriver.md
PR 6412 docs/dev/debt/libSceAgcDriver.md
PR 6481 docs/dev/debt/libSceAgcDriver.md
PR 6548 docs/dev/debt/libSceAgcDriver.md
PR 6549 docs/dev/debt/libSceAgcDriver.md
PR 6804 docs/dev/debt/libSceAgcDriver.md
PR 6808 docs/dev/debt/libSceAgcDriver.md
PR 6867 docs/dev/debt/libSceAgcDriver.md
PR 6977 docs/dev/debt/libSceAgcDriver.md
PR 7048 docs/dev/debt/libSceAgcDriver.md
PR 7256 docs/dev/debt/libSceAgcDriver.md
PR 7449 docs/dev/debt/libSceAgcDriver.md
PR 7604 docs/dev/debt/libSceAgcDriver.md
PR 7844 docs/dev/debt/libSceAgcDriver.md
PR 7978 docs/dev/debt/libSceAgcDriver.md
PR 8014 docs/dev/debt/libSceAgcDriver.md
PR 8319 docs/dev/debt/libSceAgcDriver.md
PR 8542 docs/dev/debt/libSceAgcDriver.md
PR 8592 docs/dev/debt/libSceAgcDriver.md
PR 9356 docs/dev/debt/libSceAgcDriver.md
PR 9387 docs/dev/debt/libSceAgcDriver.md
PR 9432 docs/dev/debt/libSceAgcDriver.md
PR 9533 docs/dev/debt/libSceAgcDriver.md
PR 9592 docs/dev/debt/libSceAgcDriver.md
PR 9717 docs/dev/debt/libSceAgcDriver.md
PR 9742 docs/dev/debt/libSceAgcDriver.md
PR 9748 docs/dev/debt/libSceAgcDriver.md
PR 9891 docs/dev/debt/libSceAgcDriver.md
PR 9892 docs/dev/debt/libSceAgcDriver.md
PR 9895 docs/dev/debt/libSceAgcDriver.md
PR 9915 docs/dev/debt/libSceAgcDriver.md
PR 10026 docs/dev/debt/libSceAgcDriver.md
PR 10064 docs/dev/debt/libSceAgcDriver.md
PR 10193 docs/dev/debt/libSceAgcDriver.md
PR 10233 docs/dev/debt/libSceAgcDriver.md
PR 11104 docs/dev/debt/libSceAgcDriver.md
PR 11126 docs/dev/debt/libSceAgcDriver.md
PR 12120 docs/dev/debt/libSceAgcDriver.md
PR 12246 docs/dev/debt/libSceAgcDriver.md
PR 13146 docs/dev/debt/libSceAgcDriver.md
PR 13474 core/libs/prx/libSceAgcDriver/Export.cpp
docs/dev/debt/libSceAgcDriver.md

@github-actions github-actions Bot added docs agc libSceAgc* labels Oct 30, 2026
@kyon-eth
kyon-eth force-pushed the feat/agc-driver-320-exports branch from ec4e2ec to 85a6cb6 Compare October 30, 2026 20:07
@kyon-eth kyon-eth changed the title feat(libSceAgcDriver): declare 16 callable exports feat(libSceAgcDriver): declare 27 callable exports Oct 30, 2026
@kyon-eth
kyon-eth marked this pull request as ready for review October 30, 2026 21:25
@adriadam10 adriadam10 self-assigned this Oct 30, 2026

@adriadam10 adriadam10 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, the 16 Unknown placeholders look fine to me (no NID collisions with main, they throw). A few things before this can merge:

  • core/libs/prx/libSceAgcDriver/Export.cpp:188-333: the 11 agcPaDebugLegacyUnknown_* NIDs. The PR itself says their names, signatures and library membership are unverified ("qualified guest import resolution is unverified"), and they come from libSceAgcDriverPaDebug metadata. Please either show they are imported from libSceAgcDriver (a title import, or a source that lists them under this library), or drop them from this PR.
  • docs/dev/debt/libSceAgcDriver.md:11: the PaDebug entry lists no NIDs, unlike the 16-row table below it. If these stay, list all 11 in a table with the same columns.
  • Export.cpp:272-274: #includes in the middle of the file, and ExportMacros.hpp / General.hpp are already included at the top. Put the includes at the top and drop the duplicates.
  • include/InventoryExports.hpp and include/LegacyPaDebugExports.hpp exist only to forward-declare placeholders; if nothing else calls them, the extern "C" definitions in Export.cpp need no header (and libSceAgcDriver.hpp stays unchanged).

@kyon-eth kyon-eth changed the title feat(libSceAgcDriver): declare 27 callable exports feat(libSceAgcDriver): declare 16 callable exports Oct 30, 2026
@adriadam10
adriadam10 force-pushed the feat/agc-driver-320-exports branch from f77391b to 1fd299c Compare October 30, 2026 22:06
@adriadam10
adriadam10 merged commit 542faba into boykopovar:main Oct 30, 2026
11 checks passed
@adriadam10

Copy link
Copy Markdown
Collaborator

Thanks, the PaDebug NIDs are gone. I added two small commits on top:

  • Removed include/InventoryExports.hpp and its includes: nothing calls those declarations, the extern "C" definitions in Export.cpp need no header.
  • Dropped a stray blank line in docs/dev/debt/libSceAgcDriver.md.

Checked: the 16 NIDs do not collide with main, every body throws through NotImplemented_nid_no_patch, debt table lists all 16; merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agc libSceAgc* docs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants