AnyPS5/docs/dev/debt/libSceSharePlay.md

1.2 KiB

libSceSharePlay technical debt

Unknown function info

  • sceSharePlayInitialize (libSceSharePlay) - the library keeps no state, so the heap is not used. A null heap is accepted: PPSA11386 passes a null heap and 0x1800 bytes and stops on any non-zero result. The error for a zero size is unknown, so it throws

Functional

  • sceSharePlayGetCurrentConnectionInfoA (libSceSharePlay) - reports no Share Play session, as the library keeps none: status 0 (DORMANT), mode 0, empty online IDs, account IDs 0 and both user IDs -1 (SCE_USER_SERVICE_USER_ID_INVALID). A null pointer returns SCE_SHARE_PLAY_ERROR_INVALID_ARGS (0x810E0001). The 72-byte SceSharePlayConnectionInfoA layout and the error code follow KytyPS5 and fpPS4, which agree on both; KytyPS5 sets the user IDs to -1 and fpPS4 leaves them 0, and which one the console returns is not verified. KytyPS5 also returns SCE_SHARE_PLAY_ERROR_NOT_INITIALIZED before sceSharePlayInitialize; this library keeps no initialization state and does not.