Commit 988fa23d authored by Libretro-Admin's avatar Libretro-Admin
Browse files

Core options update

parent 5a04c334
Pipeline #46299 passed with stages
in 27 minutes and 16 seconds
......@@ -3519,6 +3519,26 @@ struct retro_core_option_v2_definition
* in the retro_core_option_value array, otherwise will be
* ignored */
const char *default_value;
/* Specify the type this option represents so the frontend
* can present the user an alternative input method besides
* a limited list of possible values.
* > If set to "int", all values need to be integers
* and a frontend with support for numerical input will
* allow input of any number betwen the lowest and
* highest defined value.
* > If set to "float", all values need to be numbers
* and a frontend with support for numerical input will
* allow input of any number betwen the lowest and
* highest defined value.
* > If set to "bool", there should be only two values
* "true" and "false" (label can be anything)
* The frontend can choose to show a checkbox for it.
* > If NULL or set to "enum", the frontend will show
* the list of values and input will be limited to them.
* Future versions of the specs could allow this for more
* types or to be "TYPE:MORE:OPTIONS" */
const char *type_info;
};
struct retro_core_options_v2
......
......@@ -75,7 +75,8 @@ struct retro_core_option_v2_definition option_defs_us[] = {
{ "pal", "PAL" },
{ NULL, NULL},
},
"auto"
"auto",
NULL
},
{
"snes9x_2010_aspect",
......@@ -92,7 +93,8 @@ struct retro_core_option_v2_definition option_defs_us[] = {
{ "pal", "PAL" },
{ NULL, NULL},
},
"auto"
"auto",
NULL
},
{
"snes9x_2010_turbodelay",
......@@ -107,7 +109,8 @@ struct retro_core_option_v2_definition option_defs_us[] = {
{ "slow", "Slow "},
{ NULL, NULL },
},
"medium"
"medium",
NULL
},
{
"snes9x_2010_blargg",
......@@ -125,7 +128,8 @@ struct retro_core_option_v2_definition option_defs_us[] = {
{ "rgb", "RGB" },
{ NULL, NULL},
},
"disabled"
"disabled",
NULL
},
{
"snes9x_2010_frameskip",
......@@ -140,7 +144,8 @@ struct retro_core_option_v2_definition option_defs_us[] = {
{ "manual", "Manual" },
{ NULL, NULL},
},
"disabled"
"disabled",
NULL
},
{
"snes9x_2010_frameskip_threshold",
......@@ -168,7 +173,8 @@ struct retro_core_option_v2_definition option_defs_us[] = {
{ "60", NULL },
{ NULL, NULL },
},
"33"
"33",
"int"
},
{
"snes9x_2010_overclock",
......@@ -192,7 +198,8 @@ struct retro_core_option_v2_definition option_defs_us[] = {
{ "40 MHz", NULL },
{ NULL, NULL},
},
"10 MHz (Default)"
"10 MHz (Default)",
NULL
},
{
"snes9x_2010_overclock_cycles",
......@@ -208,7 +215,8 @@ struct retro_core_option_v2_definition option_defs_us[] = {
{ "max", "Max" },
{ NULL, NULL},
},
"disabled"
"disabled",
NULL
},
{
"snes9x_2010_reduce_sprite_flicker",
......@@ -222,7 +230,8 @@ struct retro_core_option_v2_definition option_defs_us[] = {
{ "enabled", NULL },
{ NULL, NULL},
},
"disabled"
"disabled",
"bool"
},
{
"snes9x_2010_block_invalid_vram_access",
......@@ -236,10 +245,11 @@ struct retro_core_option_v2_definition option_defs_us[] = {
{ "disabled", NULL },
{ NULL, NULL},
},
"enabled"
"enabled",
"bool"
},
{ NULL, NULL, NULL, NULL, NULL, NULL, {{0}}, NULL },
{ NULL, NULL, NULL, NULL, NULL, NULL, {{0}}, NULL, NULL },
};
struct retro_core_options_v2 options_us = {
......
......@@ -110,6 +110,7 @@ struct retro_core_option_v2_definition option_defs_tr[] = {
{ "5 MHz (Underclock)", NULL },
{ NULL, NULL},
},
NULL,
NULL
},
{
......@@ -126,6 +127,7 @@ struct retro_core_option_v2_definition option_defs_tr[] = {
{ "max", "Maks" },
{ NULL, NULL},
},
NULL,
NULL
},
{
......@@ -140,9 +142,10 @@ struct retro_core_option_v2_definition option_defs_tr[] = {
{ "enabled", NULL },
{ NULL, NULL},
},
NULL,
NULL
},
{ NULL, NULL, NULL, NULL, NULL, NULL, {{0}}, NULL },
{ NULL, NULL, NULL, NULL, NULL, NULL, {{0}}, NULL, NULL },
};
struct retro_core_options_v2 options_tr = {
......
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