From 3c53dce313b786d55ff3f9c363ba26f4c0b3476e Mon Sep 17 00:00:00 2001 From: notaz Date: Sat, 15 Jul 2023 01:56:42 +0300 Subject: [PATCH] libretro: allow_interlace should be 2 by default --- frontend/libretro.c | 4 +++- frontend/libretro_core_options.h | 7 ++++--- frontend/libretro_core_options_intl.h | 2 +- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/frontend/libretro.c b/frontend/libretro.c index e4772848..938b8e59 100644 --- a/frontend/libretro.c +++ b/frontend/libretro.c @@ -1881,7 +1881,7 @@ static void update_variables(bool in_flight) #ifdef GPU_NEON var.value = NULL; - var.key = "pcsx_rearmed_neon_interlace_enable"; + var.key = "pcsx_rearmed_neon_interlace_enable_v2"; if (environ_cb(RETRO_ENVIRONMENT_GET_VARIABLE, &var) && var.value) { @@ -1889,6 +1889,8 @@ static void update_variables(bool in_flight) pl_rearmed_cbs.gpu_neon.allow_interlace = 0; else if (strcmp(var.value, "enabled") == 0) pl_rearmed_cbs.gpu_neon.allow_interlace = 1; + else // auto + pl_rearmed_cbs.gpu_neon.allow_interlace = 2; } var.value = NULL; diff --git a/frontend/libretro_core_options.h b/frontend/libretro_core_options.h index 0a3f55c7..4165237d 100644 --- a/frontend/libretro_core_options.h +++ b/frontend/libretro_core_options.h @@ -437,18 +437,19 @@ struct retro_core_option_v2_definition option_defs_us[] = { }, #ifdef GPU_NEON { - "pcsx_rearmed_neon_interlace_enable", + "pcsx_rearmed_neon_interlace_enable_v2", "(GPU) Show Interlaced Video", "Show Interlaced Video", - "When enabled, games that run in high resolution video modes (480i, 512i) will produced interlaced video output. While this displays correctly on CRT televisions, it will produce artifacts on modern displays. When disabled, all video is output in progressive format.", + "When enabled, games that run in high resolution video modes (480i, 512i) will produced interlaced video output. While this displays correctly on CRT televisions, it will produce artifacts on modern displays. When disabled, all video is output in progressive format. Note: there are games that will glitch is this is off.", NULL, "gpu_neon", { + { "auto", NULL }, { "disabled", NULL }, { "enabled", NULL }, { NULL, NULL }, }, - "disabled", + "auto", }, { "pcsx_rearmed_neon_enhancement_enable", diff --git a/frontend/libretro_core_options_intl.h b/frontend/libretro_core_options_intl.h index df03a767..d6658222 100644 --- a/frontend/libretro_core_options_intl.h +++ b/frontend/libretro_core_options_intl.h @@ -239,7 +239,7 @@ struct retro_core_option_v2_definition option_defs_tr[] = { #ifdef GPU_NEON { - "pcsx_rearmed_neon_interlace_enable", + "pcsx_rearmed_neon_interlace_enable_v2", "Interlacing Mode'u etkinleştir", NULL, "Sahte tarama çizgileri efektini etkinleştirir.", -- 2.39.5