mirror of
https://github.com/KytyPS5/KytyPS5.git
synced 2026-10-28 05:46:56 +01:00
videoout: fix VRR status import signature
Co-authored-by: Mac <me@itsmemac.com>
This commit is contained in:
@@ -1680,21 +1680,6 @@ KYTY_SYSV_ABI int VideoOutGetOutputStatus(int handle, VideoOutOutputStatus* stat
|
|||||||
return OK;
|
return OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
KYTY_SYSV_ABI int VideoOutGetVrrStatus(int handle, int32_t* status) {
|
|
||||||
PRINT_NAME();
|
|
||||||
|
|
||||||
if (status == nullptr) {
|
|
||||||
return VIDEO_OUT_ERROR_INVALID_ADDRESS;
|
|
||||||
}
|
|
||||||
if (DriverState().Get(handle) == nullptr) {
|
|
||||||
return VIDEO_OUT_ERROR_INVALID_HANDLE;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Kyty currently presents at a fixed refresh rate and does not negotiate VRR.
|
|
||||||
*status = 0;
|
|
||||||
return OK;
|
|
||||||
}
|
|
||||||
|
|
||||||
static int ValidateOutputConfig(int handle, uint64_t mode, const VideoOutOutputOptions* options,
|
static int ValidateOutputConfig(int handle, uint64_t mode, const VideoOutOutputOptions* options,
|
||||||
void* reserved_ptr, uint64_t reserved) {
|
void* reserved_ptr, uint64_t reserved) {
|
||||||
if (!DriverState().IsOpened(handle)) {
|
if (!DriverState().IsOpened(handle)) {
|
||||||
|
|||||||
@@ -87,7 +87,6 @@ KYTY_SYSV_ABI int VideoOutGetEventData(const LibKernel::EventQueue::KernelEvent*
|
|||||||
KYTY_SYSV_ABI int VideoOutGetEventCount(const LibKernel::EventQueue::KernelEvent* ev);
|
KYTY_SYSV_ABI int VideoOutGetEventCount(const LibKernel::EventQueue::KernelEvent* ev);
|
||||||
KYTY_SYSV_ABI int VideoOutWaitVblank(int handle);
|
KYTY_SYSV_ABI int VideoOutWaitVblank(int handle);
|
||||||
KYTY_SYSV_ABI int VideoOutGetOutputStatus(int handle, VideoOutOutputStatus* status);
|
KYTY_SYSV_ABI int VideoOutGetOutputStatus(int handle, VideoOutOutputStatus* status);
|
||||||
KYTY_SYSV_ABI int VideoOutGetVrrStatus(int handle, int32_t* status);
|
|
||||||
KYTY_SYSV_ABI int VideoOutInitializeOutputOptions(VideoOutOutputOptions* options);
|
KYTY_SYSV_ABI int VideoOutInitializeOutputOptions(VideoOutOutputOptions* options);
|
||||||
KYTY_SYSV_ABI int VideoOutIsOutputSupported(int handle, uint64_t mode,
|
KYTY_SYSV_ABI int VideoOutIsOutputSupported(int handle, uint64_t mode,
|
||||||
const VideoOutOutputOptions* options,
|
const VideoOutOutputOptions* options,
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
#include "common/abi.h"
|
#include "common/abi.h"
|
||||||
#include "graphics/presentation/videoOut.h"
|
#include "graphics/presentation/videoOut.h"
|
||||||
|
#include "libs/errno.h"
|
||||||
#include "libs/libs.h"
|
#include "libs/libs.h"
|
||||||
#include "loader/symbolDatabase.h"
|
#include "loader/symbolDatabase.h"
|
||||||
|
|
||||||
@@ -51,8 +52,14 @@ namespace LibGen5::VrrStatus {
|
|||||||
|
|
||||||
LIB_VERSION("VideoOutVrrStatus", 1, "VideoOut", 1, 1);
|
LIB_VERSION("VideoOutVrrStatus", 1, "VideoOut", 1, 1);
|
||||||
|
|
||||||
|
static KYTY_SYSV_ABI int VideoOutVrrStatus_kP2L8t3j_aM() {
|
||||||
|
// The observed guest call passes no arguments.
|
||||||
|
// Return success for Kyty's fixed-refresh path.
|
||||||
|
return OK;
|
||||||
|
}
|
||||||
|
|
||||||
LIB_DEFINE(InitVideoOutVrrStatus_1) {
|
LIB_DEFINE(InitVideoOutVrrStatus_1) {
|
||||||
LIB_FUNC("kP2L8t3j-aM", VideoOut::VideoOutGetVrrStatus);
|
LIB_FUNC("kP2L8t3j-aM", VideoOutVrrStatus_kP2L8t3j_aM);
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace LibGen5::VrrStatus
|
} // namespace LibGen5::VrrStatus
|
||||||
|
|||||||
Reference in New Issue
Block a user