Ifdef more code

This commit is contained in:
twinaphex 2015-09-07 22:33:11 +02:00
parent c0be42265f
commit 23b98bf689
2 changed files with 8 additions and 6 deletions

View File

@ -568,8 +568,6 @@ static int generic_action_ok(const char *path,
video_shader_parse_type(action_path, RARCH_SHADER_NONE), video_shader_parse_type(action_path, RARCH_SHADER_NONE),
action_path); action_path);
break; break;
#endif
#ifdef HAVE_SHADER_MANAGER
case ACTION_OK_LOAD_SHADER_PASS: case ACTION_OK_LOAD_SHADER_PASS:
strlcpy( strlcpy(
menu->shader->pass[hack_shader_pass].source.path, menu->shader->pass[hack_shader_pass].source.path,

View File

@ -95,6 +95,7 @@ static int action_select_core_setting(const char *path, const char *label, unsig
return core_setting_right(type, label, true); 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, static int shader_action_parameter_select(const char *path, const char *label, unsigned type,
size_t idx) 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); return shader_action_parameter_preset_right(type, label, true);
} }
#endif
static int action_select_cheat(const char *path, const char *label, unsigned type, static int action_select_cheat(const char *path, const char *label, unsigned type,
size_t idx) 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( static int menu_cbs_init_bind_select_compare_type(
menu_file_list_cbs_t *cbs, unsigned 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) && type <= MENU_SETTINGS_SHADER_PARAMETER_LAST)
cbs->action_select = shader_action_parameter_select; cbs->action_select = shader_action_parameter_select;
else if (type >= MENU_SETTINGS_SHADER_PRESET_PARAMETER_0 else if (type >= MENU_SETTINGS_SHADER_PRESET_PARAMETER_0
&& type <= MENU_SETTINGS_SHADER_PRESET_PARAMETER_LAST) && type <= MENU_SETTINGS_SHADER_PRESET_PARAMETER_LAST)
cbs->action_select = shader_action_parameter_preset_select; cbs->action_select = shader_action_parameter_preset_select;
else if (type >= MENU_SETTINGS_CHEAT_BEGIN #endif
&& type <= MENU_SETTINGS_CHEAT_END)
cbs->action_select = action_select_cheat;
else if (type >= MENU_SETTINGS_INPUT_DESC_BEGIN else if (type >= MENU_SETTINGS_INPUT_DESC_BEGIN
&& type <= MENU_SETTINGS_INPUT_DESC_END) && type <= MENU_SETTINGS_INPUT_DESC_END)
cbs->action_select = action_select_input_desc; cbs->action_select = action_select_input_desc;