Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Libretro
snes9x2002
Commits
25d9d4fe
Unverified
Commit
25d9d4fe
authored
Apr 01, 2022
by
Libretro-Admin
Committed by
GitHub
Apr 01, 2022
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
Changes
2
Pipelines
9
Hide whitespace changes
Inline
Side-by-side
libretro/libretro.c
View file @
25d9d4fe
...
...
@@ -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
;
...
...
libretro/libretro_core_options.h
View file @
25d9d4fe
...
...
@@ -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"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment