mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-31 08:33:40 +00:00
Add APPLICATION_SPECIAL_DIRECTORY_ASSETS_MATERIALUI_FONT
This commit is contained in:
parent
5ea923030b
commit
f3815ed815
@ -325,6 +325,16 @@ void fill_pathname_application_special(char *s, size_t len, enum application_spe
|
||||
fill_pathname_slash(s1, sizeof(s1));
|
||||
strlcpy(s, s1, len);
|
||||
}
|
||||
#endif
|
||||
break;
|
||||
case APPLICATION_SPECIAL_DIRECTORY_ASSETS_MATERIALUI_FONT:
|
||||
#ifdef HAVE_MATERIALUI
|
||||
{
|
||||
char s1[PATH_MAX_LENGTH] = {0};
|
||||
fill_pathname_application_special(s1, sizeof(s1),
|
||||
APPLICATION_SPECIAL_DIRECTORY_ASSETS_MATERIALUI);
|
||||
fill_pathname_join(s, s1, "Roboto-Regular.ttf", len);
|
||||
}
|
||||
#endif
|
||||
break;
|
||||
case APPLICATION_SPECIAL_NONE:
|
||||
|
@ -26,9 +26,11 @@ enum application_special_type
|
||||
{
|
||||
APPLICATION_SPECIAL_NONE = 0,
|
||||
APPLICATION_SPECIAL_DIRECTORY_ASSETS_MATERIALUI,
|
||||
APPLICATION_SPECIAL_DIRECTORY_ASSETS_MATERIALUI_FONT,
|
||||
APPLICATION_SPECIAL_DIRECTORY_ASSETS_MATERIALUI_ICONS,
|
||||
APPLICATION_SPECIAL_DIRECTORY_ASSETS_XMB,
|
||||
APPLICATION_SPECIAL_DIRECTORY_ASSETS_XMB_ICONS
|
||||
APPLICATION_SPECIAL_DIRECTORY_ASSETS_XMB_ICONS,
|
||||
APPLICATION_SPECIAL_DIRECTORY_ASSETS_XMB_FONT
|
||||
};
|
||||
|
||||
bool fill_pathname_application_data(char *s, size_t len);
|
||||
|
@ -1005,15 +1005,12 @@ static void mui_frame(void *data)
|
||||
static void mui_font(void)
|
||||
{
|
||||
menu_display_ctx_font_t font_info;
|
||||
char mediapath[PATH_MAX_LENGTH] = {0};
|
||||
char fontpath[PATH_MAX_LENGTH] = {0};
|
||||
settings_t *settings = config_get_ptr();
|
||||
int font_size = menu_display_get_font_size();
|
||||
|
||||
fill_pathname_application_special(mediapath, sizeof(mediapath),
|
||||
APPLICATION_SPECIAL_DIRECTORY_ASSETS_MATERIALUI);
|
||||
fill_pathname_join(fontpath, mediapath,
|
||||
"Roboto-Regular.ttf", sizeof(fontpath));
|
||||
fill_pathname_application_special(fontpath, sizeof(fontpath),
|
||||
APPLICATION_SPECIAL_DIRECTORY_ASSETS_MATERIALUI_FONT);
|
||||
|
||||
font_info.path = fontpath;
|
||||
font_info.size = font_size;
|
||||
|
Loading…
x
Reference in New Issue
Block a user