Files
AnyPS5/core/libs/prx/libSceAvPlayerStreaming/Export.cpp
T
BunnyFlandClaude Opus 5.5 9656993c25 feat(libSceAvPlayerStreaming): answer MvpHttpGetLastError as firmware 13.42 does
It returns -1 for a null context and otherwise the 32-bit value at
offset 0x30 of the context, as its firmware 13.42 body does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-07 06:57:59 +01:00

183 lines
3.8 KiB
C++

#include "prx/libSceAvPlayerStreaming/include/Api.hpp"
#include <cstddef>
#include <cstdint>
#include <cstring>
#include "SceTypes.hpp"
#include "prx/libc/include/General.hpp"
extern "C" {
APS5_DUMMY_FUN
int APS5_VABI MvpHttpAbort_nid_postfix(void) {
NotImplemented_nid_no_patch(__func__);
return 0;
}
int APS5_VABI MvpHttpDeInit_nid_postfix(void) {
NotImplemented_nid_no_patch(__func__);
return 0;
}
int APS5_VABI MvpHttpGet_nid_postfix(void) {
NotImplemented_nid_no_patch(__func__);
return 0;
}
int APS5_VABI MvpHttpGetLastError_nid_postfix(const void* context) {
if (context == nullptr) return -1;
std::int32_t error;
std::memcpy(&error, static_cast<const unsigned char*>(context) + 0x30, sizeof(error));
return error;
}
int APS5_VABI MvpHttpHead_nid_postfix(void) {
NotImplemented_nid_no_patch(__func__);
return 0;
}
int APS5_VABI MvpHttpHeadCleanup_nid_postfix(void) {
NotImplemented_nid_no_patch(__func__);
return 0;
}
int APS5_VABI MvpHttpInit_nid_postfix(void) {
NotImplemented_nid_no_patch(__func__);
return 0;
}
int APS5_VABI MvpHttpPost_nid_postfix(void) {
NotImplemented_nid_no_patch(__func__);
return 0;
}
int APS5_VABI MvpHttpSetCert_nid_postfix(void) {
NotImplemented_nid_no_patch(__func__);
return 0;
}
int APS5_VABI MvpHttpSetRecvTimeout_nid_postfix(void) {
NotImplemented_nid_no_patch(__func__);
return 0;
}
int APS5_VABI MvpHttpSetRedirectCb_nid_postfix(void) {
NotImplemented_nid_no_patch(__func__);
return 0;
}
int APS5_VABI sceAvPlayerStreamingRegisterVprinf() {
NotImplemented_nid_no_patch(__func__);
}
int APS5_VABI sceTsCloseFile(void) {
NotImplemented_nid_no_patch(__func__);
return 0;
}
int APS5_VABI sceTsDisableRepresentation(void) {
NotImplemented_nid_no_patch(__func__);
return 0;
}
int APS5_VABI sceTsEnableRepresentation(void) {
NotImplemented_nid_no_patch(__func__);
return 0;
}
int APS5_VABI sceTsEnableStream(void) {
NotImplemented_nid_no_patch(__func__);
return 0;
}
int APS5_VABI sceTsGetAvailableBW(void) {
NotImplemented_nid_no_patch(__func__);
return 0;
}
int APS5_VABI sceTsGetLiveStatus(void) {
NotImplemented_nid_no_patch(__func__);
return 0;
}
int APS5_VABI sceTsGetNextAuInfo(void) {
NotImplemented_nid_no_patch(__func__);
return 0;
}
int APS5_VABI sceTsGetNextUnitData(void) {
NotImplemented_nid_no_patch(__func__);
return 0;
}
int APS5_VABI sceTsGetRepresentationCount(void) {
NotImplemented_nid_no_patch(__func__);
return 0;
}
int APS5_VABI sceTsGetRepresentationInfo(void) {
NotImplemented_nid_no_patch(__func__);
return 0;
}
int APS5_VABI sceTsGetSeekWindow(void) {
NotImplemented_nid_no_patch(__func__);
return 0;
}
int APS5_VABI sceTsGetStreamInfo(void) {
NotImplemented_nid_no_patch(__func__);
return 0;
}
int APS5_VABI sceTsGetUrlEncryptionType(void) {
NotImplemented_nid_no_patch(__func__);
return 0;
}
int APS5_VABI sceTsJumpPTS(void) {
NotImplemented_nid_no_patch(__func__);
return 0;
}
int APS5_VABI sceTsOpenFile(void) {
NotImplemented_nid_no_patch(__func__);
return 0;
}
int APS5_VABI sceTsOpenFileEx(void) {
NotImplemented_nid_no_patch(__func__);
return 0;
}
int APS5_VABI sceTsReleaseBuffer(void) {
NotImplemented_nid_no_patch(__func__);
return 0;
}
int APS5_VABI sceTsRepresentationIsEnabled(void) {
NotImplemented_nid_no_patch(__func__);
return 0;
}
int APS5_VABI sceTsSetAvailableBW(void) {
NotImplemented_nid_no_patch(__func__);
return 0;
}
int APS5_VABI sceTsSetStartingBW(void) {
NotImplemented_nid_no_patch(__func__);
return 0;
}
int APS5_VABI sceTsStartFileStreaming(void) {
NotImplemented_nid_no_patch(__func__);
return 0;
}
int APS5_VABI sceTsStopFileStreaming(void) {
NotImplemented_nid_no_patch(__func__);
return 0;
}
}