mirror of
https://github.com/libretro/RetroArch
synced 2025-03-02 19:13:34 +00:00
Update Font Path menu option
This commit is contained in:
parent
24ce77155a
commit
2fb5e821cf
@ -1576,6 +1576,13 @@ static int action_ok_menu_wallpaper(const char *path,
|
||||
return action_ok_lookup_setting(path, label, type, idx, entry_idx);
|
||||
}
|
||||
|
||||
static int action_ok_menu_font(const char *path,
|
||||
const char *label, unsigned type, size_t idx, size_t entry_idx)
|
||||
{
|
||||
filebrowser_set_type(FILEBROWSER_SELECT_FONT);
|
||||
return action_ok_lookup_setting(path, label, type, idx, entry_idx);
|
||||
}
|
||||
|
||||
static int action_ok_menu_wallpaper_load(const char *path,
|
||||
const char *label, unsigned type, size_t idx, size_t entry_idx)
|
||||
{
|
||||
@ -4165,6 +4172,9 @@ static int menu_cbs_init_bind_ok_compare_label(menu_file_list_cbs_t *cbs,
|
||||
case MENU_ENUM_LABEL_MENU_WALLPAPER:
|
||||
BIND_ACTION_OK(cbs, action_ok_menu_wallpaper);
|
||||
break;
|
||||
case MENU_ENUM_LABEL_VIDEO_FONT_PATH:
|
||||
BIND_ACTION_OK(cbs, action_ok_menu_font);
|
||||
break;
|
||||
case MENU_ENUM_LABEL_BROWSE_START:
|
||||
BIND_ACTION_OK(cbs, action_ok_browse_url_start);
|
||||
break;
|
||||
|
@ -140,7 +140,10 @@ void filebrowser_parse(void *data, unsigned type_data)
|
||||
break;
|
||||
case RARCH_PLAIN_FILE:
|
||||
default:
|
||||
file_type = (enum msg_file_type)info->type_default;
|
||||
if (filebrowser_types == FILEBROWSER_SELECT_FONT)
|
||||
file_type = FILE_TYPE_FONT;
|
||||
else
|
||||
file_type = (enum msg_file_type)info->type_default;
|
||||
switch (type)
|
||||
{
|
||||
/* in case of deferred_core_list we have to interpret
|
||||
|
@ -31,6 +31,7 @@ enum filebrowser_enums
|
||||
FILEBROWSER_SCAN_DIR,
|
||||
FILEBROWSER_SELECT_FILE,
|
||||
FILEBROWSER_SELECT_IMAGE,
|
||||
FILEBROWSER_SELECT_FONT,
|
||||
FILEBROWSER_SELECT_COLLECTION
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user