some dummy net functions

This commit is contained in:
georgemoralis 2024-03-30 09:35:00 +02:00
parent 37813c1f59
commit 8e8a82a310
7 changed files with 17 additions and 13 deletions

View File

@ -258,9 +258,11 @@ int PS4_SYSV_ABI sceHttpGetStatusCode() {
return ORBIS_OK; return ORBIS_OK;
} }
int PS4_SYSV_ABI sceHttpInit() { int PS4_SYSV_ABI sceHttpInit(int libnetMemId, int libsslCtxId, std::size_t poolSize) {
LOG_ERROR(Lib_Http, "(STUBBED) called"); LOG_ERROR(Lib_Http, "(DUMMY) called libnetMemId = {} libsslCtxId = {} poolSize = {}",libnetMemId,libsslCtxId,poolSize);
return ORBIS_OK; // return a value >1
static int id = 0;
return ++id;
} }
int PS4_SYSV_ABI sceHttpParseResponseHeader() { int PS4_SYSV_ABI sceHttpParseResponseHeader() {

View File

@ -57,7 +57,7 @@ int PS4_SYSV_ABI sceHttpGetNonblock();
int PS4_SYSV_ABI sceHttpGetRegisteredCtxIds(); int PS4_SYSV_ABI sceHttpGetRegisteredCtxIds();
int PS4_SYSV_ABI sceHttpGetResponseContentLength(); int PS4_SYSV_ABI sceHttpGetResponseContentLength();
int PS4_SYSV_ABI sceHttpGetStatusCode(); int PS4_SYSV_ABI sceHttpGetStatusCode();
int PS4_SYSV_ABI sceHttpInit(); int PS4_SYSV_ABI sceHttpInit(int libnetMemId, int libsslCtxId, std::size_t poolSize);
int PS4_SYSV_ABI sceHttpParseResponseHeader(); int PS4_SYSV_ABI sceHttpParseResponseHeader();
int PS4_SYSV_ABI sceHttpParseStatusLine(); int PS4_SYSV_ABI sceHttpParseStatusLine();
int PS4_SYSV_ABI sceHttpReadData(); int PS4_SYSV_ABI sceHttpReadData();

View File

@ -744,7 +744,7 @@ int PS4_SYSV_ABI sceNetInfoDumpStop() {
} }
int PS4_SYSV_ABI sceNetInit() { int PS4_SYSV_ABI sceNetInit() {
LOG_ERROR(Lib_Net, "(STUBBED) called"); LOG_ERROR(Lib_Net, "(DUMMY) called");
return ORBIS_OK; return ORBIS_OK;
} }
@ -788,8 +788,8 @@ int PS4_SYSV_ABI sceNetNtohs() {
return ORBIS_OK; return ORBIS_OK;
} }
int PS4_SYSV_ABI sceNetPoolCreate() { int PS4_SYSV_ABI sceNetPoolCreate(const char* name, int size, int flags) {
LOG_ERROR(Lib_Net, "(STUBBED) called"); LOG_ERROR(Lib_Net, "(DUMMY) name = {} size = {} flags = {} ", std::string(name), size, flags);
return ORBIS_OK; return ORBIS_OK;
} }

View File

@ -163,7 +163,7 @@ int PS4_SYSV_ABI sceNetMemoryFree();
int PS4_SYSV_ABI sceNetNtohl(); int PS4_SYSV_ABI sceNetNtohl();
int PS4_SYSV_ABI sceNetNtohll(); int PS4_SYSV_ABI sceNetNtohll();
int PS4_SYSV_ABI sceNetNtohs(); int PS4_SYSV_ABI sceNetNtohs();
int PS4_SYSV_ABI sceNetPoolCreate(); int PS4_SYSV_ABI sceNetPoolCreate(const char* name, int size, int flags);
int PS4_SYSV_ABI sceNetPoolDestroy(); int PS4_SYSV_ABI sceNetPoolDestroy();
int PS4_SYSV_ABI sceNetPppoeStart(); int PS4_SYSV_ABI sceNetPppoeStart();
int PS4_SYSV_ABI sceNetPppoeStop(); int PS4_SYSV_ABI sceNetPppoeStop();

View File

@ -299,7 +299,7 @@ int PS4_SYSV_ABI sceSaveDataInitialize2() {
} }
int PS4_SYSV_ABI sceSaveDataInitialize3() { int PS4_SYSV_ABI sceSaveDataInitialize3() {
LOG_ERROR(Lib_SaveData, "(STUBBED) called"); LOG_ERROR(Lib_SaveData, "(DUMMY) called");
return ORBIS_OK; return ORBIS_OK;
} }

View File

@ -693,9 +693,11 @@ int PS4_SYSV_ABI sceSslGetSubjectName() {
return ORBIS_OK; return ORBIS_OK;
} }
int PS4_SYSV_ABI sceSslInit() { int PS4_SYSV_ABI sceSslInit(std::size_t poolSize) {
LOG_ERROR(Lib_Ssl, "(STUBBED) called"); LOG_ERROR(Lib_Ssl, "(DUMMY) called poolSize = {}",poolSize);
return ORBIS_OK; //return a value >1
static int id = 0;
return ++id;
} }
int PS4_SYSV_ABI sceSslLoadCert() { int PS4_SYSV_ABI sceSslLoadCert() {

View File

@ -144,7 +144,7 @@ int PS4_SYSV_ABI sceSslGetNotBefore();
int PS4_SYSV_ABI sceSslGetSerialNumber(); int PS4_SYSV_ABI sceSslGetSerialNumber();
int PS4_SYSV_ABI sceSslGetSslError(); int PS4_SYSV_ABI sceSslGetSslError();
int PS4_SYSV_ABI sceSslGetSubjectName(); int PS4_SYSV_ABI sceSslGetSubjectName();
int PS4_SYSV_ABI sceSslInit(); int PS4_SYSV_ABI sceSslInit(std::size_t poolSize);
int PS4_SYSV_ABI sceSslLoadCert(); int PS4_SYSV_ABI sceSslLoadCert();
int PS4_SYSV_ABI sceSslLoadRootCACert(); int PS4_SYSV_ABI sceSslLoadRootCACert();
int PS4_SYSV_ABI sceSslRecv(); int PS4_SYSV_ABI sceSslRecv();