mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-16 07:40:16 +00:00
Reimplement menu_parse_checkx
This commit is contained in:
parent
eb347b0d4e
commit
b443a032f6
@ -729,21 +729,27 @@ int menu_entries_parse_list(file_list_t *list, file_list_t *menu_list,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static int menu_parse_check(const char *label, unsigned menu_type)
|
static int menu_parse_check(const char *label, unsigned menu_type)
|
||||||
{
|
{
|
||||||
#if 0
|
#if 0
|
||||||
RARCH_LOG("label is menu_parse_check: %s\n", label);
|
RARCH_LOG("label is menu_parse_check: %s\n", label);
|
||||||
#endif
|
#endif
|
||||||
bool check = (!((menu_type == MENU_FILE_DIRECTORY ||
|
if (
|
||||||
menu_type == MENU_FILE_CARCHIVE ||
|
menu_type == MENU_FILE_CATEGORY ||
|
||||||
menu_common_type_is(label, menu_type) == MENU_SETTINGS_SHADER_OPTIONS ||
|
!strcmp(label, "Main Menu") ||
|
||||||
menu_common_type_is(label, menu_type) == MENU_FILE_DIRECTORY ||
|
!strcmp(label, "settings") ||
|
||||||
menu_type == MENU_FILE_PATH ||
|
!strcmp(label, "performance_counters") ||
|
||||||
!strcmp(label, "core_list") ||
|
!strcmp(label, "core_information") ||
|
||||||
!strcmp(label, "configurations") ||
|
!strcmp(label, "deferred_core_list") ||
|
||||||
!strcmp(label, "disk_image_append"))));
|
!strcmp(label, "core_counters") ||
|
||||||
if (check)
|
!strcmp(label, "frontend_counters") ||
|
||||||
|
!strcmp(label, "core_options") ||
|
||||||
|
!strcmp(label, "Input Options") ||
|
||||||
|
!strcmp(label, "Shader Options") ||
|
||||||
|
!strcmp(label, "disk_options") ||
|
||||||
|
!strcmp(label, "video_shader_preset_parameters") ||
|
||||||
|
!strcmp(label, "video_shader_parameters")
|
||||||
|
)
|
||||||
return -1;
|
return -1;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@ -764,6 +770,8 @@ int menu_entries_deferred_push(file_list_t *list, file_list_t *menu_list)
|
|||||||
return push_list(driver.menu, list, path, label, type);
|
return push_list(driver.menu, list, path, label, type);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
RARCH_LOG("label is: %s\n", label);
|
||||||
|
|
||||||
cbs = (menu_file_list_cbs_t*)
|
cbs = (menu_file_list_cbs_t*)
|
||||||
file_list_get_last_actiondata(menu_list);
|
file_list_get_last_actiondata(menu_list);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user