Add progress bar for shuffle install

This commit is contained in:
2024-06-08 12:29:35 -04:00
parent 2ed3d8b34d
commit 7abf989de8
2 changed files with 3 additions and 0 deletions

View File

@@ -444,6 +444,7 @@ Result install_badges(void)
int default_set = 0;
int default_set_count = 0;
int default_idx = 0;
draw_loading_bar(0, entries_read + 4, INSTALL_BADGES);
for (u32 i = 0; i < entries_read && badge_count < 1000; ++i)
{
if (!strcmp(badge_files[i].shortExt, "PNG"))

View File

@@ -61,6 +61,7 @@ static Result install_theme_internal(const Entry_List_s * themes, int installmod
char * padded = NULL;
int shuffle_count = 0;
draw_loading_bar(shuffle_count, themes->shuffle_count + 1, INSTALL_SHUFFLE);
Handle body_cache_handle;
if(installmode & THEME_INSTALL_BODY)
@@ -149,6 +150,7 @@ static Result install_theme_internal(const Entry_List_s * themes, int installmod
}
shuffle_count++;
draw_loading_bar(shuffle_count, themes->shuffle_count + 1, INSTALL_SHUFFLE);
}
}