static int frontend_gx_parse_drive_list(void *data) { #ifndef IS_SALAMANDER file_list_t *list = (file_list_t*)data; #ifdef HW_RVL menu_entries_add(list, "sd:/", "", MENU_FILE_DIRECTORY, 0, 0); menu_entries_add(list, "usb:/", "", MENU_FILE_DIRECTORY, 0, 0); #endif menu_entries_add(list, "carda:/", "", MENU_FILE_DIRECTORY, 0, 0); menu_entries_add(list, "cardb:/", "", MENU_FILE_DIRECTORY, 0, 0); #endif return 0; }
static int frontend_win32_parse_drive_list(void *data) { #ifdef HAVE_MENU size_t i = 0; unsigned drives = GetLogicalDrives(); char drive[] = " :\\"; file_list_t *list = (file_list_t*)data; for (i = 0; i < 32; i++) { drive[0] = 'A' + i; if (drives & (1 << i)) menu_entries_add(list, drive, "", MENU_FILE_DIRECTORY, 0, 0); } #endif return 0; }
static bool nk_menu_init_list(void *data) { menu_displaylist_info_t info = {0}; file_list_t *menu_stack = menu_entries_get_menu_stack_ptr(0); file_list_t *selection_buf = menu_entries_get_selection_buf_ptr(0); strlcpy(info.label, menu_hash_to_str(MENU_VALUE_HISTORY_TAB), sizeof(info.label)); menu_entries_add(menu_stack, info.path, info.label, info.type, info.flags, 0); command_event(CMD_EVENT_HISTORY_INIT, NULL); info.list = selection_buf; if (menu_displaylist_ctl(DISPLAYLIST_HISTORY, &info)) { info.need_push = true; return menu_displaylist_ctl(DISPLAYLIST_PROCESS, &info); } return false; }
static int frontend_ps3_parse_drive_list(void *data) { #ifndef IS_SALAMANDER file_list_t *list = (file_list_t*)data; menu_entries_add(list, "/app_home/", "", MENU_FILE_DIRECTORY, 0, 0); menu_entries_add(list, "/dev_hdd0/", "", MENU_FILE_DIRECTORY, 0, 0); menu_entries_add(list, "/dev_hdd1/", "", MENU_FILE_DIRECTORY, 0, 0); menu_entries_add(list, "/host_root/", "", MENU_FILE_DIRECTORY, 0, 0); menu_entries_add(list, "/dev_usb000/", "", MENU_FILE_DIRECTORY, 0, 0); menu_entries_add(list, "/dev_usb001/", "", MENU_FILE_DIRECTORY, 0, 0); menu_entries_add(list, "/dev_usb002/", "", MENU_FILE_DIRECTORY, 0, 0); menu_entries_add(list, "/dev_usb003/", "", MENU_FILE_DIRECTORY, 0, 0); menu_entries_add(list, "/dev_usb004/", "", MENU_FILE_DIRECTORY, 0, 0); menu_entries_add(list, "/dev_usb005/", "", MENU_FILE_DIRECTORY, 0, 0); menu_entries_add(list, "/dev_usb006/", "", MENU_FILE_DIRECTORY, 0, 0); #endif return 0; }