mirror of
https://github.com/libretro/RetroArch
synced 2025-04-10 06:44:27 +00:00
Cleanups
This commit is contained in:
parent
8cfb5b2922
commit
8990736e66
@ -270,6 +270,34 @@ void fill_pathname_application_special(char *s, size_t len, enum application_spe
|
|||||||
{
|
{
|
||||||
switch (type)
|
switch (type)
|
||||||
{
|
{
|
||||||
|
case APPLICATION_SPECIAL_DIRECTORY_ASSETS_ZARCH_ICONS:
|
||||||
|
#ifdef HAVE_ZARCH
|
||||||
|
{
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
break;
|
||||||
|
case APPLICATION_SPECIAL_DIRECTORY_ASSETS_ZARCH_FONT:
|
||||||
|
#ifdef HAVE_ZARCH
|
||||||
|
{
|
||||||
|
char s1[PATH_MAX_LENGTH] = {0};
|
||||||
|
fill_pathname_application_special(s1, sizeof(s1),
|
||||||
|
APPLICATION_SPECIAL_DIRECTORY_ASSETS_ZARCH);
|
||||||
|
fill_pathname_join(s,
|
||||||
|
s1, "Roboto-Condensed.ttf", len);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
break;
|
||||||
|
case APPLICATION_SPECIAL_DIRECTORY_ASSETS_ZARCH:
|
||||||
|
#ifdef HAVE_ZARCH
|
||||||
|
{
|
||||||
|
settings_t *settings = config_get_ptr();
|
||||||
|
fill_pathname_join(s,
|
||||||
|
settings->directory.assets,
|
||||||
|
"zarch",
|
||||||
|
len);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
break;
|
||||||
case APPLICATION_SPECIAL_DIRECTORY_ASSETS_XMB_ICONS:
|
case APPLICATION_SPECIAL_DIRECTORY_ASSETS_XMB_ICONS:
|
||||||
#ifdef HAVE_XMB
|
#ifdef HAVE_XMB
|
||||||
{
|
{
|
||||||
|
@ -31,7 +31,10 @@ enum application_special_type
|
|||||||
APPLICATION_SPECIAL_DIRECTORY_ASSETS_XMB,
|
APPLICATION_SPECIAL_DIRECTORY_ASSETS_XMB,
|
||||||
APPLICATION_SPECIAL_DIRECTORY_ASSETS_XMB_BG,
|
APPLICATION_SPECIAL_DIRECTORY_ASSETS_XMB_BG,
|
||||||
APPLICATION_SPECIAL_DIRECTORY_ASSETS_XMB_ICONS,
|
APPLICATION_SPECIAL_DIRECTORY_ASSETS_XMB_ICONS,
|
||||||
APPLICATION_SPECIAL_DIRECTORY_ASSETS_XMB_FONT
|
APPLICATION_SPECIAL_DIRECTORY_ASSETS_XMB_FONT,
|
||||||
|
APPLICATION_SPECIAL_DIRECTORY_ASSETS_ZARCH,
|
||||||
|
APPLICATION_SPECIAL_DIRECTORY_ASSETS_ZARCH_FONT,
|
||||||
|
APPLICATION_SPECIAL_DIRECTORY_ASSETS_ZARCH_ICONS
|
||||||
};
|
};
|
||||||
|
|
||||||
bool fill_pathname_application_data(char *s, size_t len);
|
bool fill_pathname_application_data(char *s, size_t len);
|
||||||
|
@ -30,12 +30,14 @@
|
|||||||
#include <formats/image.h>
|
#include <formats/image.h>
|
||||||
#include <compat/strl.h>
|
#include <compat/strl.h>
|
||||||
#include <retro_stat.h>
|
#include <retro_stat.h>
|
||||||
|
#include <string/stdstring.h>
|
||||||
|
|
||||||
#include "menu_generic.h"
|
#include "menu_generic.h"
|
||||||
|
|
||||||
#include "../../config.def.h"
|
#include "../../config.def.h"
|
||||||
|
|
||||||
#include "../../list_special.h"
|
#include "../../list_special.h"
|
||||||
|
#include "../../file_path_special.h"
|
||||||
|
|
||||||
#include "../menu_driver.h"
|
#include "../menu_driver.h"
|
||||||
#include "../menu_animation.h"
|
#include "../menu_animation.h"
|
||||||
@ -170,18 +172,12 @@ static enum zarch_layout_type zarch_layout;
|
|||||||
static void zarch_zui_font(void)
|
static void zarch_zui_font(void)
|
||||||
{
|
{
|
||||||
menu_display_ctx_font_t font_info;
|
menu_display_ctx_font_t font_info;
|
||||||
char mediapath[PATH_MAX_LENGTH] = {0};
|
|
||||||
char fontpath[PATH_MAX_LENGTH] = {0};
|
char fontpath[PATH_MAX_LENGTH] = {0};
|
||||||
settings_t *settings = config_get_ptr();
|
|
||||||
int font_size = menu_display_get_font_size();
|
int font_size = menu_display_get_font_size();
|
||||||
|
|
||||||
fill_pathname_join(
|
fill_pathname_application_special(
|
||||||
mediapath,
|
fontpath, sizeof(fontpath),
|
||||||
settings->directory.assets,
|
APPLICATION_SPECIAL_DIRECTORY_ASSETS_ZARCH_FONT);
|
||||||
"zarch",
|
|
||||||
sizeof(mediapath));
|
|
||||||
fill_pathname_join(fontpath,
|
|
||||||
mediapath, "Roboto-Condensed.ttf", sizeof(fontpath));
|
|
||||||
|
|
||||||
font_info.path = fontpath;
|
font_info.path = fontpath;
|
||||||
font_info.size = font_size;
|
font_info.size = font_size;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user