mirror of
https://github.com/libretro/RetroArch
synced 2025-03-28 19:20:35 +00:00
Cleanups
This commit is contained in:
parent
84f04ae984
commit
dc24530382
@ -670,9 +670,10 @@ void ozone_context_reset_horizontal_list(ozone_handle_t *ozone)
|
||||
unsigned i;
|
||||
const char *title;
|
||||
char title_noext[255];
|
||||
char *console_name = NULL;
|
||||
settings_t *settings = config_get_ptr();
|
||||
size_t list_size = ozone_list_get_size(ozone, MENU_LIST_HORIZONTAL);
|
||||
char *console_name = NULL;
|
||||
settings_t *settings = config_get_ptr();
|
||||
bool ozone_truncate_playlist_name = settings->bools.ozone_truncate_playlist_name;
|
||||
size_t list_size = ozone_list_get_size(ozone, MENU_LIST_HORIZONTAL);
|
||||
|
||||
for (i = 0; i < list_size; i++)
|
||||
{
|
||||
@ -780,14 +781,15 @@ void ozone_context_reset_horizontal_list(ozone_handle_t *ozone)
|
||||
fill_pathname_base_noext(title_noext, title, sizeof(title_noext));
|
||||
|
||||
console_name = title_noext;
|
||||
|
||||
/* Format : "Vendor - Console"
|
||||
Remove everything before the hyphen
|
||||
and the subsequent space */
|
||||
if (settings->bools.ozone_truncate_playlist_name)
|
||||
if (ozone_truncate_playlist_name)
|
||||
{
|
||||
bool hyphen_found = false;
|
||||
|
||||
while (true)
|
||||
for (;;)
|
||||
{
|
||||
/* Check for "- " */
|
||||
if (*console_name == '-' && *(console_name + 1) == ' ')
|
||||
|
Loading…
x
Reference in New Issue
Block a user