feat(libSceJsc): declare 379 callable exports #13135

Merged
kyon-eth merged 8 commits from upstream-pr/13135 into main 2026-11-05 03:59:35 +00:00
kyon-eth commented 2026-10-30 03:54:55 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by kyon-eth on 2026-10-30T03:54:55Z.


What

Declare 379 additional libSceJsc callable exports. The 356 named candidates hash to typed function NIDs in the public 3.20 catalogue; 23 additional NIDs have unidentified names. Per-image records show matching module and library identities in two version-labelled images, whose labels do not authenticate retail firmware provenance. These declarations throw; signatures and behavior are unverified. No game unblock is claimed. Seventeen newly added NIDs appear in both JSC and WebKit in the older image, and in JSC in the later image. The batch excludes NIDs already declared by the merged WebKit export PR #13117; platform-specific loader behavior for those shared exports needs separate analysis. The later image also contains five of these newly added NIDs in WebKit; current main has no WebKit declaration for them, and any future addition requires the same analysis.

Tested

  • macOS x86-64: compiled the export source and verified the original 362 NIDs in a patched standalone library; after adding 17 shared older exports, rebuilt and verified the 17 new patched aliases once each.
  • Audited public headers, conventions, whitespace and open PR overlap.
  • No Linux, Windows, console 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
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5079210849 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/13135). Originally posted by [kyon-eth](https://github.com/kyon-eth) on 2026-10-30T03:54:55Z. --- ### What Declare 379 additional `libSceJsc` callable exports. The 356 named candidates hash to typed function NIDs in the public 3.20 catalogue; 23 additional NIDs have unidentified names. Per-image records show matching module and library identities in two version-labelled images, whose labels do not authenticate retail firmware provenance. These declarations throw; signatures and behavior are unverified. No game unblock is claimed. Seventeen newly added NIDs appear in both JSC and WebKit in the older image, and in JSC in the later image. The batch excludes NIDs already declared by the merged WebKit export PR #13117; platform-specific loader behavior for those shared exports needs separate analysis. The later image also contains five of these newly added NIDs in WebKit; current main has no WebKit declaration for them, and any future addition requires the same analysis. ### Tested - macOS x86-64: compiled the export source and verified the original 362 NIDs in a patched standalone library; after adding 17 shared older exports, rebuilt and verified the 17 new patched aliases once each. - Audited public headers, conventions, whitespace and open PR overlap. - No Linux, Windows, console or game run was performed. ### Checklist - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes
CnRJay commented 2026-11-01 19:58:11 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by CnRJay on 2026-11-01T19:58:11Z.

Review: COMMENTED


Correction (2026-11-01): this review demanded a title for a PR where no title can supply one. CONTRIBUTING allows Unblocks: none. The technical points below are unaffected.

1. No title reaches this. The description says "Unblocks: none" and "No game unblock is claimed", and there is no title ID with a log line showing a title on main importing any of the 379 libSceJsc exports. Without that, nothing shows these declarations are needed. Please add the title ID and the log line (for example the unresolved-import line on main for one of these NIDs), or say plainly that none of them is imported by a title yet.

2. Export kind and identity. 23 of the NIDs have no identified name, and the text says signatures and behaviour are unverified. The build and NID-patcher check on macOS show that our aliases were emitted, not what the source image exports. Please link per-symbol evidence (defined/exported status, symbol type, module and library identity) for each added NID, or drop the ones where function versus data is not established. Every definition is int APS5_VABI name() { NotImplemented_nid_no_patch(__func__); } with no parameters, so a data export declared as a function would resolve to code where a title expects data.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5729950959 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/13135#pullrequestreview-5729950959). Originally posted by [CnRJay](https://github.com/CnRJay) on 2026-11-01T19:58:11Z. **Review:** COMMENTED --- **Correction (2026-11-01):** this review demanded a title for a PR where no title can supply one. CONTRIBUTING allows `Unblocks: none`. The technical points below are unaffected. **1. No title reaches this.** The description says "Unblocks: none" and "No game unblock is claimed", and there is no title ID with a log line showing a title on main importing any of the 379 libSceJsc exports. Without that, nothing shows these declarations are needed. Please add the title ID and the log line (for example the unresolved-import line on main for one of these NIDs), or say plainly that none of them is imported by a title yet. **2. Export kind and identity.** 23 of the NIDs have no identified name, and the text says signatures and behaviour are unverified. The build and NID-patcher check on macOS show that our aliases were emitted, not what the source image exports. Please link per-symbol evidence (defined/exported status, symbol type, module and library identity) for each added NID, or drop the ones where function versus data is not established. Every definition is `int APS5_VABI name() { NotImplemented_nid_no_patch(__func__); }` with no parameters, so a data export declared as a function would resolve to code where a title expects data.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!13135
No description provided.