mirror of
https://github.com/libretro/RetroArch
synced 2025-01-29 18:32:44 +00:00
Reduce some variables
This commit is contained in:
parent
d2eed0dabe
commit
4d88381481
@ -4314,9 +4314,9 @@ static unsigned menu_displaylist_parse_playlists(
|
|||||||
#if defined(HAVE_LIBRETRODB)
|
#if defined(HAVE_LIBRETRODB)
|
||||||
if (settings->bools.menu_content_show_explore)
|
if (settings->bools.menu_content_show_explore)
|
||||||
{
|
{
|
||||||
char label[512];
|
char lbl[NAME_MAX_LENGTH];
|
||||||
size_t _len = strlcpy(label, msg_hash_to_str(MENU_ENUM_LABEL_EXPLORE_VIEW),
|
size_t _len = strlcpy(lbl, msg_hash_to_str(MENU_ENUM_LABEL_EXPLORE_VIEW),
|
||||||
sizeof(label));
|
sizeof(lbl));
|
||||||
|
|
||||||
/* List any custom explore views above playlists */
|
/* List any custom explore views above playlists */
|
||||||
for (i = 0; i < list_size; i++)
|
for (i = 0; i < list_size; i++)
|
||||||
@ -4327,9 +4327,9 @@ static unsigned menu_displaylist_parse_playlists(
|
|||||||
if (!string_is_equal_noncase(fext, "lvw"))
|
if (!string_is_equal_noncase(fext, "lvw"))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
snprintf(label + _len, sizeof(label) - _len, ": %.*s",
|
snprintf(lbl + _len, sizeof(lbl) - _len, ": %.*s",
|
||||||
(int)(fext - 1 - fname), fname);
|
(int)(fext - 1 - fname), fname);
|
||||||
if (menu_entries_append(info_list, label, path,
|
if (menu_entries_append(info_list, lbl, path,
|
||||||
MENU_ENUM_LABEL_GOTO_EXPLORE,
|
MENU_ENUM_LABEL_GOTO_EXPLORE,
|
||||||
MENU_EXPLORE_TAB, 0, (count - content_count), NULL))
|
MENU_EXPLORE_TAB, 0, (count - content_count), NULL))
|
||||||
{
|
{
|
||||||
@ -4912,7 +4912,7 @@ static unsigned menu_displaylist_parse_pl_thumbnail_download_list(
|
|||||||
static unsigned menu_displaylist_parse_content_information(
|
static unsigned menu_displaylist_parse_content_information(
|
||||||
menu_handle_t *menu, settings_t *settings, file_list_t *info_list)
|
menu_handle_t *menu, settings_t *settings, file_list_t *info_list)
|
||||||
{
|
{
|
||||||
char tmp[8192];
|
char tmp[PATH_MAX_LENGTH];
|
||||||
char core_name[NAME_MAX_LENGTH];
|
char core_name[NAME_MAX_LENGTH];
|
||||||
char content_label[NAME_MAX_LENGTH];
|
char content_label[NAME_MAX_LENGTH];
|
||||||
playlist_t *playlist = playlist_get_cached();
|
playlist_t *playlist = playlist_get_cached();
|
||||||
@ -8143,7 +8143,7 @@ unsigned menu_displaylist_build_list(
|
|||||||
if (net_ifinfo_new(&interfaces))
|
if (net_ifinfo_new(&interfaces))
|
||||||
{
|
{
|
||||||
size_t i;
|
size_t i;
|
||||||
char buf[1024];
|
char buf[NAME_MAX_LENGTH];
|
||||||
const char *msg_intf = msg_hash_to_str(MSG_INTERFACE);
|
const char *msg_intf = msg_hash_to_str(MSG_INTERFACE);
|
||||||
size_t _len = strlcpy(buf, msg_intf, sizeof(buf));
|
size_t _len = strlcpy(buf, msg_intf, sizeof(buf));
|
||||||
|
|
||||||
|
@ -31,7 +31,7 @@
|
|||||||
|
|
||||||
RETRO_BEGIN_DECLS
|
RETRO_BEGIN_DECLS
|
||||||
|
|
||||||
#define MENU_LABEL_MAX_LENGTH 1024
|
#define MENU_LABEL_MAX_LENGTH 512
|
||||||
|
|
||||||
#define MENU_SEARCH_FILTER_MAX_TERMS 8
|
#define MENU_SEARCH_FILTER_MAX_TERMS 8
|
||||||
#define MENU_SEARCH_FILTER_MAX_LENGTH 64
|
#define MENU_SEARCH_FILTER_MAX_LENGTH 64
|
||||||
|
Loading…
x
Reference in New Issue
Block a user