feat(prx): declare exports for six confirmed system libraries #7835

Merged
akkadbakkad89 merged 2 commits from upstream-pr/7835 into main 2026-10-20 02:27:04 +00:00
akkadbakkad89 commented 2026-10-19 09:53:25 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by akkadbakkad89 on 2026-10-19T09:53:25Z.


What

Declares the exported function names for six of the confirmed PS5 system libraries inventoried by bec9cf2e5, replacing each library's APS5_DUMMY_FUN placeholder with NotImplemented_nid_no_patch stubs so titles that import them resolve real NIDs:

  • libSceNKWeb — sceNKWebInitialize, sceNKWebTerminate
  • libSceDiscId — sceDiscIdGet, sceDiscIdGet2
  • libSceAppChecker — sceAppCheckerAbort, sceAppCheckerExecute, sceAppCheckerExecuteEx
  • libSceS3da — sceS3daClose, sceS3daGetInfo, sceS3daOpen, sceS3daSendData
  • libSceAudioLatencyEstimation — sceAudioLatencyEstimationAddData, sceAudioLatencyEstimationGetDelayTime, sceAudioLatencyEstimationInitialize, sceAudioLatencyEstimationRelease
  • libSceCompanionUtil — sceCompanionUtilGetEvent, sceCompanionUtilGetRemoteOskEvent, sceCompanionUtilInitialize, sceCompanionUtilOptParamInitialize, sceCompanionUtilTerminate

20 exports total. Each name resolves to a known NID in the aerolib database (tools/nid_names.py), and every prototype is declared () because no signature is verified for these libraries yet — the same "unknown prototype" shape 1b5004d77 settled on for the earlier declaration batch.

Tested

Windows 11, MinGW (WinLibs GCC 15.2.0), Release; also configured and built under WSL gcc.

  • All six libraries compile and link as .prx via the glob else() path; nm -D on each unpatched/*.prx shows exactly the declared sce* symbols.
  • python3 tools/nid_names.py resolves every declared name to a unique NID (no unknown-name warnings); a git grep sweep confirmed none of the 20 names is already exported by another core/libs/prx/ directory (the conventions duplicate-export check).
  • python3 tools/check_conventions.py --base origin/main: clean; git diff --check: clean.
  • Attribution: libSceNKWeb, libSceDiscId, libSceS3da and libSceCompanionUtil match the per-module PS5 3.20 export inventory exactly (dump-verified, same source as 1b5004d77). libSceAppChecker and libSceAudioLatencyEstimation are absent from that inventory — their names are prefix-attributed from the aerolib table only, as stated in their debt files. All six libraries now have docs/dev/debt/<library>.md entries per the 1b5004d77 documentation shape.

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 (declaration-only change; .prx builds verified, no GPU path exercised)
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4919096074 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7835). Originally posted by [akkadbakkad89](https://github.com/akkadbakkad89) on 2026-10-19T09:53:25Z. --- ### What Declares the exported function names for six of the confirmed PS5 system libraries inventoried by `bec9cf2e5`, replacing each library's `APS5_DUMMY_FUN` placeholder with `NotImplemented_nid_no_patch` stubs so titles that import them resolve real NIDs: - `libSceNKWeb` — `sceNKWebInitialize`, `sceNKWebTerminate` - `libSceDiscId` — `sceDiscIdGet`, `sceDiscIdGet2` - `libSceAppChecker` — `sceAppCheckerAbort`, `sceAppCheckerExecute`, `sceAppCheckerExecuteEx` - `libSceS3da` — `sceS3daClose`, `sceS3daGetInfo`, `sceS3daOpen`, `sceS3daSendData` - `libSceAudioLatencyEstimation` — `sceAudioLatencyEstimationAddData`, `sceAudioLatencyEstimationGetDelayTime`, `sceAudioLatencyEstimationInitialize`, `sceAudioLatencyEstimationRelease` - `libSceCompanionUtil` — `sceCompanionUtilGetEvent`, `sceCompanionUtilGetRemoteOskEvent`, `sceCompanionUtilInitialize`, `sceCompanionUtilOptParamInitialize`, `sceCompanionUtilTerminate` 20 exports total. Each name resolves to a known NID in the aerolib database (`tools/nid_names.py`), and every prototype is declared `()` because no signature is verified for these libraries yet — the same "unknown prototype" shape `1b5004d77` settled on for the earlier declaration batch. ### Tested Windows 11, MinGW (WinLibs GCC 15.2.0), Release; also configured and built under WSL gcc. - All six libraries compile and link as `.prx` via the glob `else()` path; `nm -D` on each `unpatched/*.prx` shows exactly the declared `sce*` symbols. - `python3 tools/nid_names.py` resolves every declared name to a unique NID (no unknown-name warnings); a `git grep` sweep confirmed none of the 20 names is already exported by another `core/libs/prx/` directory (the conventions duplicate-export check). - `python3 tools/check_conventions.py --base origin/main`: clean; `git diff --check`: clean. - Attribution: `libSceNKWeb`, `libSceDiscId`, `libSceS3da` and `libSceCompanionUtil` match the per-module [PS5 3.20 export inventory](https://github.com/DNNDHH/PS5-3.20_Libs) exactly (dump-verified, same source as `1b5004d77`). `libSceAppChecker` and `libSceAudioLatencyEstimation` are absent from that inventory — their names are prefix-attributed from the aerolib table only, as stated in their debt files. All six libraries now have `docs/dev/debt/<library>.md` entries per the `1b5004d77` documentation shape. ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [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 (declaration-only change; `.prx` builds verified, no GPU path exercised) - [x] AI-assisted: yes
github-actions[bot] commented 2026-10-19 09:54:12 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-19T09:54:12Z.


Progress report (b106f6f → eac1440)

📉 System libraries: 81.33% (-0.34%, +20 declared functions)

🆕 20 declared as stubs
Library Name
libSceAppChecker sceAppCheckerAbort
libSceAppChecker sceAppCheckerExecute
libSceAppChecker sceAppCheckerExecuteEx
libSceAudioLatencyEstimation sceAudioLatencyEstimationAddData
libSceAudioLatencyEstimation sceAudioLatencyEstimationGetDelayTime
libSceAudioLatencyEstimation sceAudioLatencyEstimationInitialize
libSceAudioLatencyEstimation sceAudioLatencyEstimationRelease
libSceCompanionUtil sceCompanionUtilGetEvent
libSceCompanionUtil sceCompanionUtilGetRemoteOskEvent
libSceCompanionUtil sceCompanionUtilInitialize
libSceCompanionUtil sceCompanionUtilOptParamInitialize
libSceCompanionUtil sceCompanionUtilTerminate
libSceDiscId sceDiscIdGet
libSceDiscId sceDiscIdGet2
libSceNKWeb sceNKWebInitialize
libSceNKWeb sceNKWebTerminate
libSceS3da sceS3daClose
libSceS3da sceS3daGetInfo
libSceS3da sceS3daOpen
libSceS3da sceS3daSendData
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6264504770 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7835#issuecomment-6264504770). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-19T09:54:12Z. --- <!-- progress-report --> ### Progress report (b106f6f → eac1440) 📉 **System libraries**: 81.33% (-0.34%, +20 declared functions) <details> <summary>🆕 20 declared as stubs</summary> | Library | Name | | - | - | | libSceAppChecker | `sceAppCheckerAbort` | | libSceAppChecker | `sceAppCheckerExecute` | | libSceAppChecker | `sceAppCheckerExecuteEx` | | libSceAudioLatencyEstimation | `sceAudioLatencyEstimationAddData` | | libSceAudioLatencyEstimation | `sceAudioLatencyEstimationGetDelayTime` | | libSceAudioLatencyEstimation | `sceAudioLatencyEstimationInitialize` | | libSceAudioLatencyEstimation | `sceAudioLatencyEstimationRelease` | | libSceCompanionUtil | `sceCompanionUtilGetEvent` | | libSceCompanionUtil | `sceCompanionUtilGetRemoteOskEvent` | | libSceCompanionUtil | `sceCompanionUtilInitialize` | | libSceCompanionUtil | `sceCompanionUtilOptParamInitialize` | | libSceCompanionUtil | `sceCompanionUtilTerminate` | | libSceDiscId | `sceDiscIdGet` | | libSceDiscId | `sceDiscIdGet2` | | libSceNKWeb | `sceNKWebInitialize` | | libSceNKWeb | `sceNKWebTerminate` | | libSceS3da | `sceS3daClose` | | libSceS3da | `sceS3daGetInfo` | | libSceS3da | `sceS3daOpen` | | libSceS3da | `sceS3daSendData` | </details>
adriadam10 commented 2026-10-20 02:30:50 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-20T02:30:50Z.


Checked the six Export.cpp stubs (all throw via NotImplemented_nid_no_patch), the debt entries (same shape as 1b5004d77) and that no open PR touches these libraries; merged.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6281948083 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7835#issuecomment-6281948083). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-20T02:30:50Z. --- Checked the six Export.cpp stubs (all throw via NotImplemented_nid_no_patch), the debt entries (same shape as 1b5004d77) and that no open PR touches these libraries; merged.
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!7835
No description provided.