mirror of
https://github.com/libretro/RetroArch
synced 2025-03-23 01:21:47 +00:00
Ifdef more code
This commit is contained in:
parent
c0be42265f
commit
23b98bf689
@ -568,8 +568,6 @@ static int generic_action_ok(const char *path,
|
||||
video_shader_parse_type(action_path, RARCH_SHADER_NONE),
|
||||
action_path);
|
||||
break;
|
||||
#endif
|
||||
#ifdef HAVE_SHADER_MANAGER
|
||||
case ACTION_OK_LOAD_SHADER_PASS:
|
||||
strlcpy(
|
||||
menu->shader->pass[hack_shader_pass].source.path,
|
||||
|
@ -95,6 +95,7 @@ static int action_select_core_setting(const char *path, const char *label, unsig
|
||||
return core_setting_right(type, label, true);
|
||||
}
|
||||
|
||||
#ifdef HAVE_SHADER_MANAGER
|
||||
static int shader_action_parameter_select(const char *path, const char *label, unsigned type,
|
||||
size_t idx)
|
||||
{
|
||||
@ -106,6 +107,7 @@ static int shader_action_parameter_preset_select(const char *path, const char *l
|
||||
{
|
||||
return shader_action_parameter_preset_right(type, label, true);
|
||||
}
|
||||
#endif
|
||||
|
||||
static int action_select_cheat(const char *path, const char *label, unsigned type,
|
||||
size_t idx)
|
||||
@ -122,15 +124,17 @@ static int action_select_input_desc(const char *path, const char *label, unsigne
|
||||
static int menu_cbs_init_bind_select_compare_type(
|
||||
menu_file_list_cbs_t *cbs, unsigned type)
|
||||
{
|
||||
if (type >= MENU_SETTINGS_SHADER_PARAMETER_0
|
||||
if (type >= MENU_SETTINGS_CHEAT_BEGIN
|
||||
&& type <= MENU_SETTINGS_CHEAT_END)
|
||||
cbs->action_select = action_select_cheat;
|
||||
#ifdef HAVE_SHADER_MANAGER
|
||||
else if (type >= MENU_SETTINGS_SHADER_PARAMETER_0
|
||||
&& type <= MENU_SETTINGS_SHADER_PARAMETER_LAST)
|
||||
cbs->action_select = shader_action_parameter_select;
|
||||
else if (type >= MENU_SETTINGS_SHADER_PRESET_PARAMETER_0
|
||||
&& type <= MENU_SETTINGS_SHADER_PRESET_PARAMETER_LAST)
|
||||
cbs->action_select = shader_action_parameter_preset_select;
|
||||
else if (type >= MENU_SETTINGS_CHEAT_BEGIN
|
||||
&& type <= MENU_SETTINGS_CHEAT_END)
|
||||
cbs->action_select = action_select_cheat;
|
||||
#endif
|
||||
else if (type >= MENU_SETTINGS_INPUT_DESC_BEGIN
|
||||
&& type <= MENU_SETTINGS_INPUT_DESC_END)
|
||||
cbs->action_select = action_select_input_desc;
|
||||
|
Loading…
x
Reference in New Issue
Block a user