Blind libretro fix

This commit is contained in:
Henrik Rydgård 2022-11-06 20:01:29 +01:00
parent 69941c0d72
commit f597b4ca51
2 changed files with 26 additions and 30 deletions

View file

@ -745,22 +745,22 @@ static void check_variables(CoreParameter &coreParam)
g_Config.iInternalResolution = 10;
}
var.key = "ppsspp_rendering_mode";
if (environ_cb(RETRO_ENVIRONMENT_GET_VARIABLE, &var) && var.value)
{
if (!strcmp(var.value, "Buffered"))
g_Config.iRenderingMode = FB_BUFFERED_MODE;
else if (!strcmp(var.value, "Skip Buffer Effects"))
g_Config.iRenderingMode = FB_NON_BUFFERED_MODE;
}
var.key = "ppsspp_block_transfer_gpu";
var.key = "ppsspp_skip_buffer_effects";
if (environ_cb(RETRO_ENVIRONMENT_GET_VARIABLE, &var) && var.value)
{
if (!strcmp(var.value, "disabled"))
g_Config.bBlockTransferGPU = false;
g_Config.bSkipBufferEffects = false;
else
g_Config.bBlockTransferGPU = true;
g_Config.bSkipBufferEffects = true;
}
var.key = "ppsspp_skip_gpu_readbacks";
if (environ_cb(RETRO_ENVIRONMENT_GET_VARIABLE, &var) && var.value)
{
if (!strcmp(var.value, "disabled"))
g_Config.bSkipGPUReadbacks = false;
else
g_Config.bSkipGPUReadbacks = true;
}
var.key = "ppsspp_frameskip";

View file

@ -284,28 +284,24 @@ struct retro_core_option_v2_definition option_defs_us[] = {
"480x272"
},
{
"ppsspp_rendering_mode",
"Rendering Mode",
"ppsspp_skip_buffer_effects",
"Skip Buffer Effects",
NULL,
"'Skip Buffer Effects' is faster, but nothing may draw in some games.",
NULL,
"video",
{
{ "Buffered", NULL },
{ "Skip Buffer Effects", NULL },
{ NULL, NULL },
},
"Buffered"
},
{
"ppsspp_block_transfer_gpu",
"Block Transfer GPU",
NULL,
"Some games require this to be enabled for correct graphics.",
"Faster, but may cause major rendering issues.",
NULL,
"video",
BOOL_OPTIONS,
"enabled"
"disabled"
},
{
"ppsspp_skip_gpu_readbacks",
"Skip GPU Readbacks",
NULL,
"Some games require GPU readbacks, so be careful.",
NULL,
"video",
BOOL_OPTIONS,
"disabled"
},
{
"ppsspp_frameskip",