Remove unneeded core options

- These turbo-related core options are not working correctly and redundant because there is already a dedicated button
  to enable turbo buttons. These core options also resets turbo states each time a core option is modified.
  Removing it since it unneeded.
This commit is contained in:
negativeExponent 2019-12-14 22:13:59 +08:00
parent cdfff4a3c1
commit 371bb54e46
2 changed files with 1 additions and 211 deletions

View File

@ -1353,107 +1353,6 @@ static void check_variables(void)
else
turbo_toggle_alt = false;
}
// Enable turbo for each player's I+II buttons
var.key = "pce_p0_turbo_I_enable";
if (environ_cb(RETRO_ENVIRONMENT_GET_VARIABLE, &var) && var.value)
{
if (strcmp(var.value, "enabled") == 0)
turbo_enable[0][0] = 1;
else
turbo_enable[0][0] = 0;
}
var.key = "pce_p0_turbo_II_enable";
if (environ_cb(RETRO_ENVIRONMENT_GET_VARIABLE, &var) && var.value)
{
if (strcmp(var.value, "enabled") == 0)
turbo_enable[0][1] = 1;
else
turbo_enable[0][1] = 0;
}
var.key = "pce_p1_turbo_I_enable";
if (environ_cb(RETRO_ENVIRONMENT_GET_VARIABLE, &var) && var.value)
{
if (strcmp(var.value, "enabled") == 0)
turbo_enable[1][0] = 1;
else
turbo_enable[1][0] = 0;
}
var.key = "pce_p1_turbo_II_enable";
if (environ_cb(RETRO_ENVIRONMENT_GET_VARIABLE, &var) && var.value)
{
if (strcmp(var.value, "enabled") == 0)
turbo_enable[1][1] = 1;
else
turbo_enable[1][1] = 0;
}
var.key = "pce_p2_turbo_I_enable";
if (environ_cb(RETRO_ENVIRONMENT_GET_VARIABLE, &var) && var.value)
{
if (strcmp(var.value, "enabled") == 0)
turbo_enable[2][0] = 1;
else
turbo_enable[2][0] = 0;
}
var.key = "pce_p2_turbo_II_enable";
if (environ_cb(RETRO_ENVIRONMENT_GET_VARIABLE, &var) && var.value)
{
if (strcmp(var.value, "enabled") == 0)
turbo_enable[2][1] = 1;
else
turbo_enable[2][1] = 0;
}
var.key = "pce_p3_turbo_I_enable";
if (environ_cb(RETRO_ENVIRONMENT_GET_VARIABLE, &var) && var.value)
{
if (strcmp(var.value, "enabled") == 0)
turbo_enable[3][0] = 1;
else
turbo_enable[3][0] = 0;
}
var.key = "pce_p3_turbo_II_enable";
if (environ_cb(RETRO_ENVIRONMENT_GET_VARIABLE, &var) && var.value)
{
if (strcmp(var.value, "enabled") == 0)
turbo_enable[3][1] = 1;
else
turbo_enable[3][1] = 0;
}
var.key = "pce_p4_turbo_I_enable";
if (environ_cb(RETRO_ENVIRONMENT_GET_VARIABLE, &var) && var.value)
{
if (strcmp(var.value, "enabled") == 0)
turbo_enable[4][0] = 1;
else
turbo_enable[4][0] = 0;
}
var.key = "pce_p4_turbo_II_enable";
if (environ_cb(RETRO_ENVIRONMENT_GET_VARIABLE, &var) && var.value)
{
if (strcmp(var.value, "enabled") == 0)
turbo_enable[4][1] = 1;
else
turbo_enable[4][1] = 0;
}
}
bool retro_load_game(const struct retro_game_info *info)

View File

@ -354,116 +354,7 @@ struct retro_core_option_definition option_defs_us[] = {
},
"disabled"
},
{
"pce_p0_turbo_I_enable",
"P1 Turbo I",
"",
{
{ "disabled", NULL },
{ "enabled", NULL },
{ NULL, NULL },
},
"disabled"
},
{
"pce_p0_turbo_II_enable",
"P1 Turbo II",
"",
{
{ "disabled", NULL },
{ "enabled", NULL },
{ NULL, NULL },
},
"disabled"
},
{
"pce_p1_turbo_I_enable",
"P2 Turbo I",
"",
{
{ "disabled", NULL },
{ "enabled", NULL },
{ NULL, NULL },
},
"disabled"
},
{
"pce_p1_turbo_II_enable",
"P2 Turbo II",
"",
{
{ "disabled", NULL },
{ "enabled", NULL },
{ NULL, NULL },
},
"disabled"
},
{
"pce_p2_turbo_I_enable",
"P3 Turbo I",
"",
{
{ "disabled", NULL },
{ "enabled", NULL },
{ NULL, NULL },
},
"disabled"
},
{
"pce_p2_turbo_II_enable",
"P3 Turbo II",
"",
{
{ "disabled", NULL },
{ "enabled", NULL },
{ NULL, NULL },
},
"disabled"
},
{
"pce_p3_turbo_I_enable",
"P4 Turbo I",
"",
{
{ "disabled", NULL },
{ "enabled", NULL },
{ NULL, NULL },
},
"disabled"
},
{
"pce_p3_turbo_II_enable",
"P4 Turbo II",
"",
{
{ "disabled", NULL },
{ "enabled", NULL },
{ NULL, NULL },
},
"disabled"
},
{
"pce_p4_turbo_I_enable",
"P5 Turbo I",
"",
{
{ "disabled", NULL },
{ "enabled", NULL },
{ NULL, NULL },
},
"disabled"
},
{
"pce_p4_turbo_II_enable",
"P5 Turbo II",
"",
{
{ "disabled", NULL },
{ "enabled", NULL },
{ NULL, NULL },
},
"disabled"
},
{ NULL, NULL, NULL, {{0}}, NULL },
};