Skip to content

Commit

Permalink
sync with libretro
Browse files Browse the repository at this point in the history
  • Loading branch information
notaz committed Jul 14, 2023
1 parent 0e8e5df commit fdcde64
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 11 deletions.
4 changes: 3 additions & 1 deletion frontend/libretro.c
Original file line number Diff line number Diff line change
Expand Up @@ -1881,14 +1881,16 @@ 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)
{
if (strcmp(var.value, "disabled") == 0)
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;
Expand Down
10 changes: 4 additions & 6 deletions frontend/libretro_core_options.h
Original file line number Diff line number Diff line change
Expand Up @@ -203,9 +203,6 @@ struct retro_core_option_v2_definition option_defs_us[] = {
"PSX CPU Clock Speed",
NULL,
"Overclock or under-clock the PSX CPU. Try adjusting this if the game is too slow, too fast or hangs."
#if defined(LIGHTREC)
" Currently doesn't work with Lightrec dynarec."
#endif
#if defined(HAVE_PRE_ARMV7) && !defined(_3DS)
" Default is 50."
#else
Expand Down Expand Up @@ -440,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",
Expand Down
10 changes: 6 additions & 4 deletions frontend/libretro_core_options_intl.h
Original file line number Diff line number Diff line change
Expand Up @@ -221,11 +221,13 @@ struct retro_core_option_v2_definition option_defs_tr[] = {
"pcsx_rearmed_psxclock",
"PSX CPU Saat Hızı",
NULL,
"Overclock or under-clock the PSX CPU. Try adjusting this if the game is too slow, too fast or hangs."
#if defined(HAVE_PRE_ARMV7) && !defined(_3DS)
"Overclock or underclock the PSX clock. Default is 50",
" Default is 50."
#else
"Overclock or underclock the PSX clock. Default is 57",
" Default is 57."
#endif
,
NULL,
NULL,
{
Expand All @@ -237,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.",
Expand All @@ -250,7 +252,7 @@ struct retro_core_option_v2_definition option_defs_tr[] = {
},
{
"pcsx_rearmed_neon_enhancement_enable",
"Geliştirilmiş Çözünürlük (Yavaş)",
"Geliştirilmiş Çözünürlük",
NULL,
"Düşük performans pahasına çift çözünürlükte işler.",
NULL,
Expand Down

0 comments on commit fdcde64

Please sign in to comment.