Skip to content

Commit

Permalink
gfx_widget_load_content_animation - use fill_pathname more
Browse files Browse the repository at this point in the history
  • Loading branch information
LibretroAdmin committed Dec 23, 2024
1 parent 7317fa9 commit 772620f
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions gfx/widgets/gfx_widget_load_content_animation.c
Original file line number Diff line number Diff line change
Expand Up @@ -445,11 +445,10 @@ bool gfx_widget_start_load_content_animation(void)
* > Use db_name, if available */
if (has_db_name)
{
size_t len = strlcpy(state->icon_file, state->system_name,
sizeof(state->icon_file));
strlcpy(state->icon_file + len,
size_t len = fill_pathname(state->icon_file,
state->system_name,
".png",
sizeof(state->icon_file) - len);
sizeof(state->icon_file));

fill_pathname_join_special(icon_path,
state->icon_directory, state->icon_file,
Expand Down Expand Up @@ -477,11 +476,10 @@ bool gfx_widget_start_load_content_animation(void)
if ( !string_is_empty(core_db_name)
&& !string_is_equal(core_db_name, state->system_name))
{
size_t len = strlcpy(state->icon_file, core_db_name,
sizeof(state->icon_file));
strlcpy(state->icon_file + len,
size_t len = fill_pathname(state->icon_file,
core_db_name,
".png",
sizeof(state->icon_file) - len);
sizeof(state->icon_file));

fill_pathname_join_special(icon_path,
state->icon_directory, state->icon_file,
Expand Down

0 comments on commit 772620f

Please sign in to comment.