mirror of
https://github.com/libretro/RetroArch
synced 2025-04-01 04:20:27 +00:00
Cleanup
This commit is contained in:
parent
59acce5035
commit
ef8f51dbbc
12
retroarch.c
12
retroarch.c
@ -5149,8 +5149,8 @@ void menu_entry_get(menu_entry_t *entry, size_t stack_idx,
|
|||||||
{
|
{
|
||||||
if (entry->enum_idx == MENU_ENUM_LABEL_CHEEVOS_PASSWORD)
|
if (entry->enum_idx == MENU_ENUM_LABEL_CHEEVOS_PASSWORD)
|
||||||
{
|
{
|
||||||
size_t size, i;
|
size_t i;
|
||||||
size = strlcpy(entry->password_value, entry->value,
|
size_t size = strlcpy(entry->password_value, entry->value,
|
||||||
sizeof(entry->password_value));
|
sizeof(entry->password_value));
|
||||||
for (i = 0; i < size; i++)
|
for (i = 0; i < size; i++)
|
||||||
entry->password_value[i] = '*';
|
entry->password_value[i] = '*';
|
||||||
@ -5168,18 +5168,16 @@ void menu_entry_get(menu_entry_t *entry, size_t stack_idx,
|
|||||||
char tmp[MENU_SUBLABEL_MAX_LENGTH];
|
char tmp[MENU_SUBLABEL_MAX_LENGTH];
|
||||||
tmp[0] = '\0';
|
tmp[0] = '\0';
|
||||||
|
|
||||||
|
/* If this function callback returns true,
|
||||||
|
* we know that the value won't change - so we
|
||||||
|
* can cache it instead. */
|
||||||
if (cbs->action_sublabel(list,
|
if (cbs->action_sublabel(list,
|
||||||
entry->type, (unsigned)i,
|
entry->type, (unsigned)i,
|
||||||
label, path,
|
label, path,
|
||||||
tmp,
|
tmp,
|
||||||
sizeof(tmp)) > 0)
|
sizeof(tmp)) > 0)
|
||||||
{
|
|
||||||
/* If this function callback returns true,
|
|
||||||
* we know that the value won't change - so we
|
|
||||||
* can cache it instead. */
|
|
||||||
strlcpy(cbs->action_sublabel_cache,
|
strlcpy(cbs->action_sublabel_cache,
|
||||||
tmp, sizeof(cbs->action_sublabel_cache));
|
tmp, sizeof(cbs->action_sublabel_cache));
|
||||||
}
|
|
||||||
|
|
||||||
strlcpy(entry->sublabel, tmp, sizeof(entry->sublabel));
|
strlcpy(entry->sublabel, tmp, sizeof(entry->sublabel));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user