Unverified Commit 25d9d4fe authored by Libretro-Admin's avatar Libretro-Admin Committed by GitHub
Browse files

Merge pull request #55 from jSTE0/config-transparency

Make transparency effects configurable
parents b3df7f70 25a185e4
Pipeline #100628 passed with stages
in 9 minutes and 42 seconds
......@@ -597,6 +597,15 @@ static void check_variables(bool first_run)
if (environ_cb(RETRO_ENVIRONMENT_GET_VARIABLE, &var) && var.value)
frameskip_interval = strtol(var.value, NULL, 10);
var.key = "snes9x2002_transparency";
var.value = NULL;
Settings.Transparency = true;
if (environ_cb(RETRO_ENVIRONMENT_GET_VARIABLE, &var) && var.value)
if (strcmp(var.value, "disabled") == 0)
Settings.Transparency = false;
var.key = "snes9x2002_low_pass_filter";
var.value = NULL;
......
......@@ -121,6 +121,20 @@ struct retro_core_option_v2_definition option_defs_us[] = {
},
"1"
},
{
"snes9x2002_transparency",
"Transparency Effects",
NULL,
"Disable to improve frame rate at the expense of rendering accuracy.",
NULL,
NULL,
{
{ "disabled", NULL },
{ "enabled", NULL },
{ NULL, NULL },
},
"enabled"
},
{
"snes9x2002_low_pass_filter",
"Audio Filter",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment