mirror of
https://github.com/libretro/RetroArch
synced 2025-02-06 18:40:49 +00:00
(menu_cbs_select.c) Implement action_select_directory
This commit is contained in:
parent
3639858522
commit
747a2263c8
@ -1124,7 +1124,7 @@ static int action_ok_compressed_archive_push(const char *path,
|
||||
return menu_displaylist_push_list(&info, DISPLAYLIST_GENERIC);
|
||||
}
|
||||
|
||||
static int action_ok_directory_push(const char *path,
|
||||
int action_ok_directory_push(const char *path,
|
||||
const char *label, unsigned type, size_t idx, size_t entry_idx)
|
||||
{
|
||||
menu_displaylist_info_t info = {0};
|
||||
|
@ -51,12 +51,18 @@ static int action_select_default(const char *path, const char *label, unsigned t
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int action_select_directory(const char *path, const char *label, unsigned type,
|
||||
static int action_select_directory_stub(const char *path, const char *label, unsigned type,
|
||||
size_t idx)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int action_select_directory(const char *path, const char *label, unsigned type,
|
||||
size_t idx)
|
||||
{
|
||||
return action_ok_directory_push(path, label, type, idx, 0 /* ignored */);
|
||||
}
|
||||
|
||||
static int action_select_core_setting(const char *path, const char *label, unsigned type,
|
||||
size_t idx)
|
||||
{
|
||||
@ -90,11 +96,13 @@ static int menu_cbs_init_bind_select_compare_type(
|
||||
{
|
||||
switch (type)
|
||||
{
|
||||
case MENU_FILE_PATH:
|
||||
case MENU_FILE_DIRECTORY:
|
||||
case MENU_FILE_USE_DIRECTORY:
|
||||
cbs->action_select = action_select_directory;
|
||||
break;
|
||||
case MENU_FILE_PATH:
|
||||
case MENU_FILE_USE_DIRECTORY:
|
||||
cbs->action_select = action_select_directory_stub;
|
||||
break;
|
||||
default:
|
||||
return -1;
|
||||
}
|
||||
|
@ -33,6 +33,9 @@ extern char core_updater_path[PATH_MAX_LENGTH];
|
||||
|
||||
/* Function callbacks */
|
||||
|
||||
int action_ok_directory_push(const char *path,
|
||||
const char *label, unsigned type, size_t idx, size_t entry_idx);
|
||||
|
||||
int core_setting_right(unsigned type, const char *label,
|
||||
bool wraparound);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user