mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-29 23:42:14 +00:00
menu_entries_cbs.c - some cleanups
This commit is contained in:
parent
b79af72de1
commit
2003d2ec12
@ -1653,14 +1653,12 @@ static int deferred_push_video_shader_parameters_common(void *data, void *userda
|
||||
static int deferred_push_video_shader_preset_parameters(void *data, void *userdata,
|
||||
const char *path, const char *label, unsigned type)
|
||||
{
|
||||
if (driver.menu->shader)
|
||||
{
|
||||
return deferred_push_video_shader_parameters_common(data, userdata,
|
||||
path, label, type,
|
||||
driver.menu->shader, MENU_SETTINGS_SHADER_PRESET_PARAMETER_0);
|
||||
}
|
||||
else
|
||||
if (!driver.menu->shader)
|
||||
return 0;
|
||||
|
||||
return deferred_push_video_shader_parameters_common(data, userdata,
|
||||
path, label, type,
|
||||
driver.menu->shader, MENU_SETTINGS_SHADER_PRESET_PARAMETER_0);
|
||||
}
|
||||
|
||||
static int deferred_push_video_shader_parameters(void *data, void *userdata,
|
||||
@ -1866,6 +1864,9 @@ static int deferred_push_core_cheat_options(void *data, void *userdata,
|
||||
file_list_t *list = (file_list_t*)data;
|
||||
cheat_manager_t *cheat = (cheat_manager_t*)driver.menu->cheats;
|
||||
|
||||
(void)userdata;
|
||||
(void)type;
|
||||
|
||||
if (!list || !cheat)
|
||||
return -1;
|
||||
|
||||
@ -1894,6 +1895,8 @@ static int deferred_push_core_options(void *data, void *userdata,
|
||||
unsigned i;
|
||||
file_list_t *list = (file_list_t*)data;
|
||||
|
||||
(void)userdata;
|
||||
|
||||
if (!list)
|
||||
return -1;
|
||||
|
||||
@ -1921,6 +1924,8 @@ static int deferred_push_disk_options(void *data, void *userdata,
|
||||
{
|
||||
file_list_t *list = (file_list_t*)data;
|
||||
|
||||
(void)userdata;
|
||||
|
||||
if (!list)
|
||||
return -1;
|
||||
|
||||
@ -1960,6 +1965,8 @@ static int deferred_push_history_list(void *data, void *userdata,
|
||||
size_t list_size = 0;
|
||||
file_list_t *list = (file_list_t*)data;
|
||||
|
||||
(void)userdata;
|
||||
|
||||
if (!list || !driver.menu)
|
||||
return -1;
|
||||
|
||||
@ -2002,6 +2009,8 @@ static int deferred_push_content_actions(void *data, void *userdata,
|
||||
{
|
||||
file_list_t *list = (file_list_t*)data;
|
||||
|
||||
(void)userdata;
|
||||
|
||||
if (!list || !driver.menu)
|
||||
return -1;
|
||||
|
||||
@ -2032,6 +2041,8 @@ static int deferred_push_content_list(void *data, void *userdata,
|
||||
{
|
||||
file_list_t *list = (file_list_t*)data;
|
||||
|
||||
(void)userdata;
|
||||
|
||||
if (!list || !driver.menu)
|
||||
return -1;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user