mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-10-22 00:22:57 -05:00
AnyPS5 resolves a title's imports by NID, so a title that imports a system function no library provides fails to load with an unresolved import. The PS5 3.20 export inventory lists 193 such exports across 37 PS5 system libraries AnyPS5 implements but does not provide. Declare them as throwing stubs so those titles load and reach their next blocker. Each declaration calls NotImplemented_nid_no_patch and returns 0; none of them implements the function. Declarations with a credible prototype use it and cite the source with a pinned commit, and the rest are declared without parameters, which resolves the import without making an ABI claim. The technical-debt files record the limitation per library. libSceMbus and libSceSystemService are left out because pull request #7821 declares them. libSceAgc is left out because its exports are versioned, so the 3.20 NID names a different symbol from the one AnyPS5 ships. libSceAvPlayer.native is left out because it compiles libSceAvPlayer's Export.cpp. Names and NIDs come from the PS5 3.20 export inventory at https://github.com/DNNDHH/PS5-3.20_Libs/tree/b2a77c09cd71c01f34c790cfbe98c751a13262ad
2.6 KiB
2.6 KiB
libSceNpSessionSignaling technical debt
Unknown function info
- sceNpSessionSignalingGetConnectionFromPeerAddress (libSceNpSessionSignaling) - imported by PPSA01289 and added without an implementation; unknown signature
- sceNpSessionSignalingGetMemoryInfo (libSceNpSessionSignaling) - unknown signature
- sceNpSessionSignalingGetConnectionStatistics (libSceNpSessionSignaling) - unknown signature
- sceNpSessionSignalingGetConnectionStatus (libSceNpSessionSignaling) -
(int32 context id, int32 connection id, int32* status, SceNetInAddr* peer address, uint16* peer port)is ASTRO BOT's (PPSA21564 01.007.000) call at 0x30622B: the context id from a 32-bit field, the connection id, three stack outputs, a negative result taken as an error, then the address passed tosceNetInetNtop(AF_INET, ...)and the port tosceNetNtohs. It matches PS4'ssceNpSignalingGetConnectionStatus. The title reaches it only for a connection id from the signaling library, which offline never hands one out. No session ever activates offline, so every connection id answersCONN_NOT_FOUND(0x8055330C, from shadPS4) without writing the outputs, and a null status answersINVALID_ARGUMENT. The context id is not checked, as contexts are not tracked. The console's answer for an unknown context or connection is unverified - PPSA31327 imports declared without parameters, signatures unknown: sceNpSessionSignalingGetGroupInfo, sceNpSessionSignalingGetConnectionFromNetAddress2 (libSceNpSessionSignaling), imported by Yakuza 0 Director's Cut and not called before the main menu.
- sceNpSessionSignalingCreateJoinActivate, sceNpSessionSignalingGetConnectionFromNetAddress, sceNpSessionSignalingGetCustomProperty, sceNpSessionSignalingGetGroupFromPeerAddress, sceNpSessionSignalingInitializeWithPort, sceNpSessionSignalingJoinActivate and sceNpSessionSignalingSetCustomProperty (libSceNpSessionSignaling) - names and NIDs are present in the PS5 3.20 export inventory, but no credible prototypes were found. They are declared without parameters solely to resolve known imports; this is not an ABI claim.