Fixed the return value of sceAvPlayerIsActive

This commit is contained in:
Vladislav Mikhalin 2024-09-12 10:16:03 +03:00
parent 5e12303b06
commit 6606da808b

View file

@ -166,8 +166,8 @@ s32 PS4_SYSV_ABI sceAvPlayerInitEx(const SceAvPlayerInitDataEx* p_data,
bool PS4_SYSV_ABI sceAvPlayerIsActive(SceAvPlayerHandle handle) { bool PS4_SYSV_ABI sceAvPlayerIsActive(SceAvPlayerHandle handle) {
LOG_TRACE(Lib_AvPlayer, "called"); LOG_TRACE(Lib_AvPlayer, "called");
if (handle == nullptr) { if (handle == nullptr) {
LOG_TRACE(Lib_AvPlayer, "returning ORBIS_AVPLAYER_ERROR_INVALID_PARAMS"); LOG_TRACE(Lib_AvPlayer, "returning false");
return ORBIS_AVPLAYER_ERROR_INVALID_PARAMS; return false;
} }
const auto res = handle->IsActive(); const auto res = handle->IsActive();
LOG_TRACE(Lib_AvPlayer, "returning {}", res); LOG_TRACE(Lib_AvPlayer, "returning {}", res);