mirror of
https://github.com/libretro/RetroArch
synced 2025-03-22 16:20:58 +00:00
(gfx_widget_load_content_animation) Get rid of strlen
This commit is contained in:
parent
c5d70d49e5
commit
c1709f2218
@ -397,11 +397,12 @@ bool gfx_widget_start_load_content_animation(void)
|
||||
|
||||
if (!string_is_empty(playlist_path))
|
||||
{
|
||||
fill_pathname_base(state->system_name, playlist_path,
|
||||
char new_system_name[512];
|
||||
strlcpy(new_system_name, playlist_path, sizeof(new_system_name));
|
||||
path_remove_extension(new_system_name);
|
||||
state->system_name_len = fill_pathname_base(
|
||||
state->system_name, new_system_name,
|
||||
sizeof(state->system_name));
|
||||
path_remove_extension(state->system_name);
|
||||
|
||||
state->system_name_len = strlen(state->system_name);
|
||||
/* Exclude history and favourites playlists */
|
||||
if (string_ends_with_size(state->system_name, "_history",
|
||||
state->system_name_len, STRLEN_CONST("_history")) ||
|
||||
|
Loading…
x
Reference in New Issue
Block a user