Merge pull request #338 from Pouare514/feat/prx-loader-tripwires

feat(prx): unknown loader tripwires for TLOU
This commit is contained in:
Dean 2026-10-05 14:22:18 +13:00 committed by GitHub
commit 4ae4f53ffb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
9 changed files with 59 additions and 0 deletions

View File

@ -258,6 +258,11 @@ int APS5_VABI sceHttpUnknown01(void) {
return 0;
}
int APS5_VABI sceHttpParseResponseHeader(void) {
NotImplemented_nid_no_patch(__func__);
return 0;
}
int APS5_VABI sceHttpCreateRequest2(int conn_id, const char* method, const char* path, uint64_t content_length) {
(void)conn_id;
(void)method;

View File

@ -209,4 +209,9 @@ int APS5_VABI sceHttp2AbortRequest(int req_id) {
return 0;
}
int APS5_VABI sceHttp2GetMemoryPoolStats() {
NotImplemented_nid_no_patch(__func__);
return 0;
}
}

View File

@ -650,6 +650,11 @@ int APS5_VABI sceNetEpollCreate(const char* name, int flags) {
return id;
}
int APS5_VABI sceNetGetMemoryPoolStats() {
NotImplemented_nid_no_patch(__func__);
return 0;
}
int APS5_VABI sceNetEpollDestroy(int eid) {
std::lock_guard<std::mutex> lk(g_mutex);
if (g_epolls.erase(eid) == 0) {

View File

@ -74,4 +74,13 @@ int32_t APS5_VABI sceNpSessionSignalingGetLocalNetInfo(int32_t context_id, void*
return 0;
}
int APS5_VABI sceNpSessionSignalingGetMemoryInfo(void) {
NotImplemented_nid_no_patch(__func__);
return 0;
}
int APS5_VABI sceNpSessionSignalingGetConnectionStatistics(void) {
NotImplemented_nid_no_patch(__func__);
return 0;
}
}

View File

@ -30,4 +30,9 @@ int APS5_VABI sceNpTrophy2RegisterContext(int context, int handle, uint64_t opti
return SCE_NP_TROPHY2_OK;
}
int APS5_VABI sceNpTrophy2UnregisterUnlockCallback() {
NotImplemented_nid_no_patch(__func__);
return 0;
}
}

View File

@ -115,6 +115,16 @@ int APS5_VABI sceSystemServiceInitializePlayerDialogParam(void* param) {
return SYSTEM_SERVICE_OK;
}
int APS5_VABI sceSystemServiceDisableMediaPlay() {
NotImplemented_nid_no_patch(__func__);
return 0;
}
int APS5_VABI sceSystemServiceReenableMediaPlay() {
NotImplemented_nid_no_patch(__func__);
return 0;
}
int APS5_VABI sceSystemServiceLaunchPlayerDialog(const void* param) {
if (param == nullptr) return SYSTEM_SERVICE_ERROR_PARAMETER;
return SYSTEM_SERVICE_OK;

View File

@ -204,4 +204,9 @@ int APS5_VABI sceVoiceWriteToIPort(uint32_t input_port_id, const void* data, uin
return 0;
}
int APS5_VABI sceVoiceSetMuteFlag() {
NotImplemented_nid_no_patch(__func__);
return 0;
}
}

View File

@ -138,4 +138,9 @@ void APS5_VABI _Unlocksyslock_nid_postfix() {
g_sysLock.unlock();
}
int APS5_VABI snwprintf_s() {
NotImplemented_nid_no_patch(__func__);
return 0;
}
}

View File

@ -57,6 +57,16 @@ Throughout the project, every function at every stage either **does exactly what
- [SceAvPlayerVideoEx](../../core/libs/SceTypes.hpp) (libSceAvPlayer) - frame rate field and encoding unknown; it is left zero in frame and stream info
- [sceAjmDecMp3ParseFrame](../../core/libs/prx/libSceAjm.native/src/Ajm.cpp) (libSceAjm.native) - signature, result layout and rate tables taken from the [shadPS4](https://github.com/shadps4-emu/shadPS4) reimplementation of the PS4 library, not confirmed on a PS5 title: the layer field is not checked and MPEG-2.5 stops at 64 kbps
- [AJM Opus decoder](../../core/libs/prx/libSceAjm.native/src/Ajm.cpp) (libSceAjm.native, codec 24) - the initialize parameter layout (`u32 channels, u32 sample rate, u32`, seen as `2, 48000, 0`) and the little-endian `u16` byte count before each packet come from one title (The Smurfs Dreams); only 48000 Hz and a zero third word are accepted
- [sceHttpParseResponseHeader](../../core/libs/prx/libSceHttp/Export.cpp) (libSceHttp) - unknown signature
- [sceHttp2GetMemoryPoolStats](../../core/libs/prx/libSceHttp2/Export.cpp) (libSceHttp2) - unknown signature
- [sceNetGetMemoryPoolStats](../../core/libs/prx/libSceNet/Export.cpp) (libSceNet) - unknown signature
- [sceNpSessionSignalingGetMemoryInfo](../../core/libs/prx/libSceNpSessionSignaling/Export.cpp) (libSceNpSessionSignaling) - unknown signature
- [sceNpSessionSignalingGetConnectionStatistics](../../core/libs/prx/libSceNpSessionSignaling/Export.cpp) (libSceNpSessionSignaling) - unknown signature
- [sceNpTrophy2UnregisterUnlockCallback](../../core/libs/prx/libSceNpTrophy2/src/Context.cpp) (libSceNpTrophy2) - unknown signature
- [sceSystemServiceDisableMediaPlay](../../core/libs/prx/libSceSystemService/Export.cpp) (libSceSystemService) - unknown signature
- [sceSystemServiceReenableMediaPlay](../../core/libs/prx/libSceSystemService/Export.cpp) (libSceSystemService) - unknown signature
- [sceVoiceSetMuteFlag](../../core/libs/prx/libSceVoice/Export.cpp) (libSceVoice) - unknown signature
- [snwprintf_s](../../core/libs/prx/libc/src/RuntimeSupport.cpp) (libc) - unknown signature
### Functional