Files
AnyPS5/docs/dev/debt/libScePlayerInvitationDialog.md

2.6 KiB

libScePlayerInvitationDialog technical debt

Functional

  • libScePlayerInvitationDialog simulates dialog completion without displaying UI or sending invitations, so scePlayerInvitationDialogGetResult reports USER_CANCELED; its parameter ABI remains unverified. The 40-byte result layout (error code, result, 32 reserved bytes) is taken from SharpProspero and the error codes from the other common dialogs, not confirmed on a title.

  • scePlayerInvitationDialogInitialize, scePlayerInvitationDialogOpen, scePlayerInvitationDialogTerminate (libScePlayerInvitationDialog) - the codes NOT_INITIALIZED, ALREADY_INITIALIZED and ARG_NULL, and the order of the Open checks (param first), were measured on the firmware 13.42 module. Open does not validate the contents of the param (size 0x88, user, mode, string at +0x40, zeroed tail), which the module rejects with 0x80B8000A.

  • scePlayerInvitationDialogOpen - the PS5 return value and state changes for a repeated Open while Running are unmeasured. This library retains its existing return of 0 and leaves the running state unchanged; the firmware 13.42 report did not exercise that case.

  • scePlayerInvitationDialogInitialize, scePlayerInvitationDialogTerminate - native common-dialog ownership acquisition/release and the precedence of ALREADY_INITIALIZED versus BUSY when both conditions hold are unverified. Initialization keeps the existing ALREADY_INITIALIZED check first, then reads sceCommonDialogIsUsed; it does not acquire or release common-dialog ownership. The 13.42 module report observed BUSY (0x80B80008) before initialization with the common system in use, and ALREADY_INITIALIZED with the use-query stub set to 0; it did not test the combined condition.

  • scePlayerInvitationDialogGetResult and scePlayerInvitationDialogOpen return ARG_NULL (0x80B8000D) for unwritable or unreadable guest memory while preserving errno as a host safety fallback. The PS5 return value for this case is unmeasured.