feat(prx): declare exports for six confirmed system libraries #7835
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/7835"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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'sAPS5_DUMMY_FUNplaceholder withNotImplemented_nid_no_patchstubs so titles that import them resolve real NIDs:libSceNKWeb—sceNKWebInitialize,sceNKWebTerminatelibSceDiscId—sceDiscIdGet,sceDiscIdGet2libSceAppChecker—sceAppCheckerAbort,sceAppCheckerExecute,sceAppCheckerExecuteExlibSceS3da—sceS3daClose,sceS3daGetInfo,sceS3daOpen,sceS3daSendDatalibSceAudioLatencyEstimation—sceAudioLatencyEstimationAddData,sceAudioLatencyEstimationGetDelayTime,sceAudioLatencyEstimationInitialize,sceAudioLatencyEstimationReleaselibSceCompanionUtil—sceCompanionUtilGetEvent,sceCompanionUtilGetRemoteOskEvent,sceCompanionUtilInitialize,sceCompanionUtilOptParamInitialize,sceCompanionUtilTerminate20 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" shape1b5004d77settled on for the earlier declaration batch.Tested
Windows 11, MinGW (WinLibs GCC 15.2.0), Release; also configured and built under WSL gcc.
.prxvia the globelse()path;nm -Don eachunpatched/*.prxshows exactly the declaredsce*symbols.python3 tools/nid_names.pyresolves every declared name to a unique NID (no unknown-name warnings); agit grepsweep confirmed none of the 20 names is already exported by anothercore/libs/prx/directory (the conventions duplicate-export check).python3 tools/check_conventions.py --base origin/main: clean;git diff --check: clean.libSceNKWeb,libSceDiscId,libSceS3daandlibSceCompanionUtilmatch the per-module PS5 3.20 export inventory exactly (dump-verified, same source as1b5004d77).libSceAppCheckerandlibSceAudioLatencyEstimationare absent from that inventory — their names are prefix-attributed from the aerolib table only, as stated in their debt files. All six libraries now havedocs/dev/debt/<library>.mdentries per the1b5004d77documentation shape.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR).prxbuilds verified, no GPU path exercised)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
sceAppCheckerAbortsceAppCheckerExecutesceAppCheckerExecuteExsceAudioLatencyEstimationAddDatasceAudioLatencyEstimationGetDelayTimesceAudioLatencyEstimationInitializesceAudioLatencyEstimationReleasesceCompanionUtilGetEventsceCompanionUtilGetRemoteOskEventsceCompanionUtilInitializesceCompanionUtilOptParamInitializesceCompanionUtilTerminatesceDiscIdGetsceDiscIdGet2sceNKWebInitializesceNKWebTerminatesceS3daClosesceS3daGetInfosceS3daOpensceS3daSendDataImported 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.