XMB: Title replace '/' with '-' instead of ' ' (#17603)

This commit is contained in:
sonninnos 2025-02-19 21:49:55 +02:00 committed by GitHub
parent 8f3347d9ab
commit 6c08bf003b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 1 deletions

View File

@ -2290,7 +2290,10 @@ static void xmb_set_title(xmb_handle_t *xmb)
if ( (xmb->categories_selection_ptr <= xmb->system_tab_end)
|| (xmb->is_quick_menu && !menu_is_running_quick_menu())
|| (xmb->depth > 1))
{
menu_entries_get_title(xmb->title_name, sizeof(xmb->title_name));
strlcpy(xmb->title_name_alt, xmb->title_name, sizeof(xmb->title_name_alt));
}
else
{
xmb_node_t *node = (xmb_node_t*)file_list_get_userdata_at_offset(
@ -2317,8 +2320,9 @@ static void xmb_set_title(xmb_handle_t *xmb)
xmb->title_name_alt, sizeof(xmb->title_name_alt));
}
}
while ((scrub_char_ptr = strchr(xmb->title_name, '/')))
*scrub_char_ptr = ' ';
*scrub_char_ptr = '-';
}
static xmb_node_t* xmb_get_node(xmb_handle_t *xmb, unsigned i)