Files
AnyPS5/docs/dev/debt/libSceCommonDialog.md
BunnyFl 2d78be903c feat(libSceCommonDialog): answer clients without an implementation as firmware 13.42 does (#19220)
* feat(libSceCommonDialog): answer clients without an implementation as firmware 13.42 does
* docs(libSceCommonDialog): keep the additional exports entry under 1000 characters
2026-11-14 00:34:46 +13:00

6.7 KiB

libSceCommonDialog technical debt

Additional callable exports

  • Additional callable exports - 12 entries present in both version-labelled images are import-resolution declarations only. Neither label independently authenticates retail firmware provenance. These NIDs are absent from the pinned public 3.20 catalogue. Parameter lists, return types and behavior are unverified; parameterless int declarations are placeholders, not verified ABI contracts. Unidentified names use literal NID aliases. The entries named under Functional answer as stated there; the rest throw through NotImplemented_nid_no_patch. Data exports require separate layout and ownership analysis. Identified candidate names match their NIDs in the public symbol database or supplemental catalog.
Name NID
Unknown 8q7icGBWIrA
Unknown D-V35OhFeIM
Unknown QXFsLON5QWw
Unknown SDpCfY9uB0g
Unknown Zaa6fhiKQDE
Unknown aUS4PgJye98
Unknown afLdI6i0lQw
Unknown mVRnPerBcK0
Unknown p9TTq4bLdFU
Unknown q3-8WWCG2N0
Unknown txNJzxX6yrA
Unknown yxjgDvqUbGQ

Unknown function info

Functional

  • sceCommonDialogInitialize (libSceCommonDialog) - returning ALREADY_SYSTEM_INITIALIZED (0x80B80002) from a repeated call is not measured on a console by the project. A third-party PS5 log (obSCEne, firmware 12.40) records two calls, 0x0 and then 0x80b80002; a third call is not covered. The SDK error names, shadPS4 (a PS4 emulator) and SharpProspero give the same value; PPSA09695 compares the result with 0x80b80002 (call site 0x5F7BD0) and PPSA06327 stops on 0x80b80004. Closes when: measured on a PS5, including a third call.
  • sceCommonDialogIsUsed (libSceCommonDialog) - reports whether a common dialog holds the system, like shadPS4's g_isUsed. Only libSceInvitationDialog takes and frees it so far, through CommonDialogAcquire_nid_no_patch and CommonDialogRelease_nid_no_patch, so a dialog of another library that is in use is not seen. Not measured on a console.
  • sce::CommonDialogUtil::Client getAppId, getClientState, launchCmnDialog, updateState, getFinishData, closeModule, getResult, isInitializedStatus, isFinish and isCloseReq (libSceCommonDialog) - only the answer for a client without an implementation is implemented. In firmware 13.42 each first loads the 64-bit pointer at offset 8 of the client; while it is null, getAppId, getClientState and launchCmnDialog return -1, updateState, getFinishData, closeModule and getResult return 0x80B8000E, and isInitializedStatus, isFinish and isCloseReq return 0. A non-null pointer leads into the implementation, which is not modelled, and throws; so does an unreadable client, which the module reads through. The parameters beyond the client are from the mangled names. Read from disassembly, not measured on a console.
  • Zaa6fhiKQDE, SDpCfY9uB0g, mVRnPerBcK0, yxjgDvqUbGQ, aUS4PgJye98, D-V35OhFeIM, p9TTq4bLdFU and afLdI6i0lQw (libSceCommonDialog) - read from the 13.42 disassembly, not measured on a console. D-V35OhFeIM and p9TTq4bLdFU return 0 and read no argument. The next five take a client like the Client methods and answer only while the pointer at its offset 8 is null: aUS4PgJye98 returns 0 and the other four 0x80B8000E; otherwise they throw. Zaa6fhiKQDE passes four more arguments on, which are not declared. afLdI6i0lQw returns 0 for a valid common dialog base parameter (magic matching its address, size 0x30, 36 zero reserved bytes) and 0x80B8000A otherwise; it reads the magic at 0x2C first, so a block with a wrong magic returns the error even when its start is unreadable.