sceAvPlayerAddSourceEx - error validation

This commit is contained in:
DanielSvoboda 2025-01-30 21:40:33 -03:00
parent 7ae1d73781
commit e2e73ce386
2 changed files with 2 additions and 1 deletions

View File

@ -22,7 +22,7 @@ s32 PS4_SYSV_ABI sceAvPlayerAddSource(SceAvPlayerHandle handle, const char* file
s32 PS4_SYSV_ABI sceAvPlayerAddSourceEx(SceAvPlayerHandle handle, SceAvPlayerUriType uriType,
SceAvPlayerSourceDetails* sourceDetails) {
LOG_ERROR(Lib_AvPlayer, "(STUBBED) called");
if (handle == nullptr) {
if (handle == nullptr || uriType != SceAvPlayerUriType::validAddSourceEx) {
return ORBIS_AVPLAYER_ERROR_INVALID_PARAMS;
}
return ORBIS_OK;

View File

@ -20,6 +20,7 @@ using SceAvPlayerHandle = AvPlayer*;
enum class SceAvPlayerUriType : u32 {
Source = 0,
validAddSourceEx = 99,
};
struct SceAvPlayerUri {