mirror of
https://github.com/libretro/RetroArch
synced 2025-04-18 14:42:30 +00:00
Rewrite menu_entries_get_core_title
This commit is contained in:
parent
6d89bbfe61
commit
a9ef8333eb
@ -1177,9 +1177,14 @@ int menu_entries_get_core_title(char *s, size_t len)
|
|||||||
#else
|
#else
|
||||||
const char *extra_version = "";
|
const char *extra_version = "";
|
||||||
#endif
|
#endif
|
||||||
|
size_t copied = strlcpy(s, PACKAGE_VERSION, len);
|
||||||
snprintf(s, len, "%s%s - %s %s", PACKAGE_VERSION, extra_version,
|
copied = strlcat(s, extra_version, len);
|
||||||
core_name, core_version);
|
string_add_space_fast(s, copied);
|
||||||
|
s[copied+1] = '-';
|
||||||
|
string_add_space_fast(s, copied+2);
|
||||||
|
copied = strlcat(s, core_name, len);
|
||||||
|
string_add_space_fast(s, copied);
|
||||||
|
copied = strlcat(s, core_version, len);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user