mirror of
https://github.com/libretro/RetroArch
synced 2025-04-09 21:45:45 +00:00
Fixed font selection
This commit is contained in:
parent
e2a6a7ad17
commit
ecadf864c5
@ -2016,7 +2016,7 @@ static int frontend_linux_parse_drive_list(void *data, bool load_content)
|
|||||||
menu_entries_append_enum(list, "/",
|
menu_entries_append_enum(list, "/",
|
||||||
msg_hash_to_str(MENU_ENUM_LABEL_FILE_DETECT_CORE_LIST_PUSH_DIR),
|
msg_hash_to_str(MENU_ENUM_LABEL_FILE_DETECT_CORE_LIST_PUSH_DIR),
|
||||||
enum_idx,
|
enum_idx,
|
||||||
MENU_SETTING_ACTION, 0, 0);
|
FILE_TYPE_DIRECTORY, 0, 0);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -4133,6 +4133,7 @@ bool menu_displaylist_ctl(enum menu_displaylist_ctl_state type, void *data)
|
|||||||
core_info_list_t *list = NULL;
|
core_info_list_t *list = NULL;
|
||||||
menu_handle_t *menu = NULL;
|
menu_handle_t *menu = NULL;
|
||||||
settings_t *settings = NULL;
|
settings_t *settings = NULL;
|
||||||
|
bool load_content = true;
|
||||||
bool use_filebrowser = false;
|
bool use_filebrowser = false;
|
||||||
menu_displaylist_info_t *info = (menu_displaylist_info_t*)data;
|
menu_displaylist_info_t *info = (menu_displaylist_info_t*)data;
|
||||||
|
|
||||||
@ -6448,6 +6449,7 @@ bool menu_displaylist_ctl(enum menu_displaylist_ctl_state type, void *data)
|
|||||||
strlcpy(info->exts, "lpl", sizeof(info->exts));
|
strlcpy(info->exts, "lpl", sizeof(info->exts));
|
||||||
break;
|
break;
|
||||||
case DISPLAYLIST_FONTS:
|
case DISPLAYLIST_FONTS:
|
||||||
|
load_content = false;
|
||||||
menu_entries_ctl(MENU_ENTRIES_CTL_CLEAR, info->list);
|
menu_entries_ctl(MENU_ENTRIES_CTL_CLEAR, info->list);
|
||||||
filebrowser_clear_type();
|
filebrowser_clear_type();
|
||||||
info->type_default = FILE_TYPE_FONT;
|
info->type_default = FILE_TYPE_FONT;
|
||||||
@ -6526,7 +6528,7 @@ bool menu_displaylist_ctl(enum menu_displaylist_ctl_state type, void *data)
|
|||||||
{
|
{
|
||||||
if (string_is_empty(info->path))
|
if (string_is_empty(info->path))
|
||||||
{
|
{
|
||||||
if (frontend_driver_parse_drive_list(info->list, true) != 0)
|
if (frontend_driver_parse_drive_list(info->list, load_content) != 0)
|
||||||
menu_entries_append_enum(info->list, "/", "",
|
menu_entries_append_enum(info->list, "/", "",
|
||||||
MSG_UNKNOWN, FILE_TYPE_DIRECTORY, 0, 0);
|
MSG_UNKNOWN, FILE_TYPE_DIRECTORY, 0, 0);
|
||||||
info->need_refresh = true;
|
info->need_refresh = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user