mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-11-03 12:57:27 +00:00
2.6 KiB
2.6 KiB
libSceCompanionHttpd technical debt
Unknown function info
- sceCompanionHttpdOptParamInitialize, sceCompanionHttpdInitialize (libSceCompanionHttpd) - the option block is taken as 0x60 bytes: titles fill a work memory pointer at +0x08, its size at +0x10 and a temporary data mount point at +0x58 after
sceCompanionHttpdOptParamInitialize. Its other fields and the defaults the console writes are unknown, sosceCompanionHttpdOptParamInitializezeroes the 0x60 bytes andsceCompanionHttpdInitializereads none of them; both reject a null block withINVALID_PARAM - sceCompanionHttpdAddHeader, sceCompanionHttpdSetStatus, sceCompanionHttpdSetBody (libSceCompanionHttpd) - the PS5 13.60 exports at NIDs
8pWltDG7h6A,w7oz0AWHpT4andh3OvVxzX4qMeach consist ofxor eax, eax; retinlibSceCompanionHttpd.sprx(SHA-256BA52B40AB6B88596E4FA4B4D5A66D8E8E38B5CD43C08D3882730D7C2C565E293); their typed declarations agree with the public CompanionHttpd ABI. They return zero without reading or writing their arguments. Response construction remains unsupported - sceCompanionHttpdGet2ndScreenStatus, sceCompanionHttpdGetUserId, sceCompanionHttpdInitialize2, sceCompanionHttpdRegisterRequestBodyReceptionCallback, sceCompanionHttpdRegisterRequestCallback2, sceCompanionHttpdUnregisterRequestBodyReceptionCallback (libSceCompanionHttpd) - the rest of the library's exports, declared without parameters and without an implementation; their signatures are not verified, so every call throws
Functional
- Companion server state (libSceCompanionHttpd) - no HTTP server listens, so no companion device ever connects:
sceCompanionHttpdGetEventreturnsNO_EVENTwithout writing the event and the request callback is never called. Initialization, callback registration and start and stop are tracked with the errors of shadPS4's companion_error.h (ALREADY_REGISTEREDis 0x80E4000C, betweenNOT_STARTEDandNOT_CONNECTED; the header has 0x80E4000, one digit short). Unregistering with no callback and terminating a started server throw, since the console's answers are unknown. Not measured on a console. Closes when: a companion server is hosted