sceVideoOutGetResolutionStatus error behavior (#3044)

This commit is contained in:
Stephen Miller authored and GitHub committed 2025-06-05 12:14:34 -07:00
1 parent 3b3026ff1c
commit 43bf4ed1bc
1 file changed
+6 -1
+6 -1
View File
@@ -282,7 +282,12 @@ s32 PS4_SYSV_ABI sceVideoOutGetVblankStatus(int handle, SceVideoOutVblankStatus*
s32 PS4_SYSV_ABI sceVideoOutGetResolutionStatus(s32 handle, SceVideoOutResolutionStatus* status) {
LOG_INFO(Lib_VideoOut, "called");
*status = driver->GetPort(handle)->resolution;
auto* port = driver->GetPort(handle);
if (!port || !port->is_open) {
return ORBIS_VIDEO_OUT_ERROR_INVALID_HANDLE;
}
*status = port->resolution;
return ORBIS_OK;
}