mirror of
https://github.com/libretro/RetroArch
synced 2025-04-09 21:45:45 +00:00
Replace more strcmps
This commit is contained in:
parent
6e64fbf8c7
commit
0eacc9ff30
@ -1480,26 +1480,26 @@ void menu_entries_cbs_init_bind_ok(menu_file_list_cbs_t *cbs,
|
|||||||
cbs->action_ok = action_ok_unload_core;
|
cbs->action_ok = action_ok_unload_core;
|
||||||
else if (!strcmp(label, "save_new_config"))
|
else if (!strcmp(label, "save_new_config"))
|
||||||
cbs->action_ok = action_ok_save_new_config;
|
cbs->action_ok = action_ok_save_new_config;
|
||||||
else if (!strcmp(label, "help"))
|
else if (hash == MENU_LABEL_HELP)
|
||||||
cbs->action_ok = action_ok_help;
|
cbs->action_ok = action_ok_help;
|
||||||
else if (!strcmp(label, "video_shader_pass"))
|
else if (hash == MENU_LABEL_VIDEO_SHADER_PASS)
|
||||||
cbs->action_ok = action_ok_shader_pass;
|
cbs->action_ok = action_ok_shader_pass;
|
||||||
else if (!strcmp(label, "video_shader_preset"))
|
else if (hash == MENU_LABEL_VIDEO_SHADER_PRESET)
|
||||||
cbs->action_ok = action_ok_shader_preset;
|
cbs->action_ok = action_ok_shader_preset;
|
||||||
else if (!strcmp(label, "cheat_file_load"))
|
else if (hash == MENU_LABEL_CHEAT_FILE_LOAD)
|
||||||
cbs->action_ok = action_ok_cheat_file;
|
cbs->action_ok = action_ok_cheat_file;
|
||||||
else if (!strcmp(label, "audio_dsp_plugin"))
|
else if (hash == MENU_LABEL_AUDIO_DSP_PLUGIN)
|
||||||
cbs->action_ok = action_ok_audio_dsp_plugin;
|
cbs->action_ok = action_ok_audio_dsp_plugin;
|
||||||
else if (!strcmp(label, "video_filter"))
|
else if (hash == MENU_LABEL_VIDEO_FILTER)
|
||||||
cbs->action_ok = action_ok_video_filter;
|
cbs->action_ok = action_ok_video_filter;
|
||||||
else if (!strcmp(label, "remap_file_load"))
|
else if (hash == MENU_LABEL_REMAP_FILE_LOAD)
|
||||||
cbs->action_ok = action_ok_remap_file;
|
cbs->action_ok = action_ok_remap_file;
|
||||||
else if (!strcmp(label, "record_config"))
|
else if (!strcmp(label, "record_config"))
|
||||||
cbs->action_ok = action_ok_record_configfile;
|
cbs->action_ok = action_ok_record_configfile;
|
||||||
else if (!strcmp(label, "core_updater_list"))
|
else if (!strcmp(label, "core_updater_list"))
|
||||||
cbs->action_ok = action_ok_core_updater_list;
|
cbs->action_ok = action_ok_core_updater_list;
|
||||||
else if (!strcmp(label, "video_shader_parameters") ||
|
else if ((hash == MENU_LABEL_VIDEO_SHADER_PARAMETERS) ||
|
||||||
!strcmp(label, "video_shader_preset_parameters")
|
(hash == MENU_LABEL_VIDEO_SHADER_PRESET_PARAMETERS)
|
||||||
)
|
)
|
||||||
cbs->action_ok = action_ok_shader_parameters;
|
cbs->action_ok = action_ok_shader_parameters;
|
||||||
else if (
|
else if (
|
||||||
@ -1599,7 +1599,7 @@ void menu_entries_cbs_init_bind_ok(menu_file_list_cbs_t *cbs,
|
|||||||
cbs->action_ok = action_ok_compressed_archive_push;
|
cbs->action_ok = action_ok_compressed_archive_push;
|
||||||
break;
|
break;
|
||||||
case MENU_FILE_CORE:
|
case MENU_FILE_CORE:
|
||||||
if (!strcmp(menu_label, "deferred_core_list"))
|
if (hash == MENU_LABEL_DEFERRED_CORE_LIST)
|
||||||
cbs->action_ok = action_ok_core_load_deferred;
|
cbs->action_ok = action_ok_core_load_deferred;
|
||||||
else if (!strcmp(menu_label, "deferred_core_list_set"))
|
else if (!strcmp(menu_label, "deferred_core_list_set"))
|
||||||
cbs->action_ok = action_ok_core_deferred_set;
|
cbs->action_ok = action_ok_core_deferred_set;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user