1
0
mirror of https://gitea.tendokyu.moe/Hay1tsme/segatools.git synced 2024-11-12 04:40:46 +01:00

platform/amvideo.c: Stub monitor_setting_X reg val

This commit is contained in:
Tau 2019-08-30 18:46:04 -04:00
parent 886b7c5990
commit 86bd7443cc

View File

@ -22,6 +22,7 @@ static int amDllVideoGetVBiosVersion(void *ctx, char *dest, size_t nchars);
static HRESULT amvideo_reg_read_name(void *bytes, uint32_t *nbytes);
static HRESULT amvideo_reg_read_port_X(void *bytes, uint32_t *nbytes);
static HRESULT amvideo_reg_read_resolution_1(void *bytes, uint32_t *nbytes);
static HRESULT amvideo_reg_read_setting(void *bytes, uint32_t *nbytes);
static HRESULT amvideo_reg_read_use_segatiming(void *bytes, uint32_t *nbytes);
static const wchar_t amvideo_dll_name[] = L"$amvideo";
@ -36,6 +37,14 @@ static const struct reg_hook_val amvideo_reg_vals[] = {
static const struct reg_hook_val amvideo_reg_mode_vals[] = {
{
.name = L"monitor_setting_1",
.read = amvideo_reg_read_setting,
.type = REG_SZ,
}, {
.name = L"monitor_setting_2",
.read = amvideo_reg_read_setting,
.type = REG_SZ,
}, {
.name = L"port_1",
.read = amvideo_reg_read_port_X,
.type = REG_DWORD
@ -185,6 +194,11 @@ static HRESULT amvideo_reg_read_resolution_1(void *bytes, uint32_t *nbytes)
return reg_hook_read_wstr(bytes, nbytes, L"1920x1080");
}
static HRESULT amvideo_reg_read_setting(void *bytes, uint32_t *nbytes)
{
return reg_hook_read_wstr(bytes, nbytes, L"0");
}
static HRESULT amvideo_reg_read_use_segatiming(void *bytes, uint32_t *nbytes)
{
return reg_hook_read_u32(bytes, nbytes, 0);