mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-12-05 09:01:25 +00:00
The A forms also finish canceled at once without a dialog and return ARG_NULL for an unwritable result or user list.
5.8 KiB
5.8 KiB
libSceInvitationDialog technical debt
Silent stubs
- sceInvitationDialogGetResult - returning
COMMON_DIALOG_ERROR_ARG_NULLfor an unwritable result pointer is a host-safety fallback with console behavior unmeasured. - sceInvitationDialogOpen (libSceInvitationDialog) - with
ANYPS5_PSN_DIALOGS=show, a successful open shows AnyPS5's notice that the feature needs PlayStation Network; the console's own display without PlayStation Network is not measured, and the notice wording is AnyPS5's. - sceInvitationDialogOpen, sceInvitationDialogGetResult (libSceInvitationDialog, PS4) - no dialog is shown and no invitation is sent:
Openmoves the dialog straight toFINISHED, andGetResultreturns 0 witherrorCode0,resultUSER_CANCELED(1), thecallbackArgof the lastOpenand a recipient count of 0, as shadPS4 reports when its window is dismissed and as libSceNpProfileDialog does. Not measured on a console. - sceInvitationDialogOpenA, sceInvitationDialogGetResultA - no dialog is shown and no invitation is sent:
OpenAmoves the dialog straight toFINISHED, andGetResultAreportsUSER_CANCELED(1) with a user list count of 0. ReturningCOMMON_DIALOG_ERROR_ARG_NULLfor an unwritable result or user list is a host-safety fallback with console behaviour unmeasured.
Unknown function info
- sceInvitationDialogGetStatus (libSceInvitationDialog, PS5) - the name and NID (
EiF92YDNHRA) appear in the PS5 3.20 export inventory. It returns the current dialog status (NONE,INITIALIZED,RUNNINGorFINISHED) likesceInvitationDialogUpdateStatus; console behaviour is not measured. - sceInvitationDialogOpenA, sceInvitationDialogGetResultA (libSceInvitationDialog) - the layouts are not checked against a module; the 144-byte
InvitationDialogParamAand the 520-byte list of 16 online id and account id pairs atsentUserscome from the shadPS4 header. As in shadPS4, the A forms share the state ofOpenandGetResultand finish canceled at once like them, andGetResultAwrites only the user list count, 0 for a canceled dialog. A param whosesizeis not 144 or whosemodeis neither 1 nor 2, a result with a non-zero reserved byte andOpenAbeforeInitializethrow as for the non-A forms.dataParamis not read. Not measured on a console. - sceInvitationDialogOpen, sceInvitationDialogGetResult (libSceInvitationDialog, PS4) - the field names and the 144-byte
InvitationDialogParamcome from the shadPS4 header. They match the suppliedlibSceInvitationDialog.sprx: export8XKR6wa64iQat 0xFF0 checks the reserved bytes 0x18..0x37 of the result and writes its status at 0x08, and the helper at 0x410 copies eight bytes of the saved open parameter to 0x00, the eight result bytes to 0x08 and up to 16 20-byte online ids through the pointer at 0x10, after a four-byte count. A param whosesizeis not 144, or whosemodeis neither 1 (send) nor 2 (receive), throws, and so does a result with a non-zero reserved byte.baseParam,userIdanddataParam, with its 1 to 16 recipients, are not checked. - sceInvitationDialogOpen, sceInvitationDialogClose, sceInvitationDialogGetResult (libSceInvitationDialog, PS4) - two paths throw because shadPS4 and the other common dialogs here return different errors:
OpenbeforeInitialize(shadPS4INVALID_STATE, the Signin familyNOT_INITIALIZED) andCloseon a dialog that is not running, which is everyCloseafterInitializehere (shadPS4NOT_RUNNING, the Signin family 0).GetResultbefore the dialog finishes returnsNOT_FINISHEDeven for a null result, as in shadPS4. shadPS4 returns theresultvalue fromGetResult; this returns 0, which the module writes at 0x08 aserrorCode.
Functional
- sceInvitationDialogOpen - returning
0x80B8000D(COMMON_DIALOG_ERROR_ARG_NULL) for an unmapped or unreadable parameter pointer is a host-safety fallback; whether console hardware faults or returns an argument error on unmapped memory is unmeasured. - sceInvitationDialogInitialize, sceInvitationDialogTerminate (libSceInvitationDialog, PS4) -
InitializereturnsNOT_SYSTEM_INITIALIZEDbeforesceCommonDialogInitialize, thenALREADY_INITIALIZED, thenBUSYwhile another dialog holds the common dialog system, in shadPS4's order, andTerminatefrees the system. Only this library takes the system through libSceCommonDialog so far, so the other common dialogs neither returnBUSYbecause of it nor make it returnBUSY. Not measured on a console.