Improved stub for sceHttp2Init

Needed for updated versions of Cyberpunk 2077.

Parameters are based on fpPS4, while the stub itself is based on similar stubs in our other networking libraries.
This commit is contained in:
Stephen Miller 2025-01-12 13:30:31 -06:00
parent 8706703e85
commit e8cd5eb367
2 changed files with 5 additions and 4 deletions

View File

@ -123,9 +123,10 @@ int PS4_SYSV_ABI sceHttp2GetStatusCode() {
return ORBIS_OK;
}
int PS4_SYSV_ABI sceHttp2Init() {
LOG_ERROR(Lib_Http2, "(STUBBED) called");
return ORBIS_OK;
int PS4_SYSV_ABI sceHttp2Init(int net_id, int ssl_id, size_t pool_size, int max_requests) {
LOG_ERROR(Lib_Http2, "(DUMMY) called");
static int id = 0;
return ++id;
}
int PS4_SYSV_ABI sceHttp2ReadData() {

View File

@ -34,7 +34,7 @@ int PS4_SYSV_ABI sceHttp2GetCookieStats();
int PS4_SYSV_ABI sceHttp2GetMemoryPoolStats();
int PS4_SYSV_ABI sceHttp2GetResponseContentLength();
int PS4_SYSV_ABI sceHttp2GetStatusCode();
int PS4_SYSV_ABI sceHttp2Init();
int PS4_SYSV_ABI sceHttp2Init(int net_id, int ssl_id, size_t pool_size, int max_requests);
int PS4_SYSV_ABI sceHttp2ReadData();
int PS4_SYSV_ABI sceHttp2ReadDataAsync();
int PS4_SYSV_ABI sceHttp2RedirectCacheFlush();