Automatically update themes list when a new theme is downloaded

This commit is contained in:
2017-09-04 02:42:27 -04:00
parent 3241544296
commit 5fc499ff78
4 changed files with 36 additions and 3 deletions

View File

@@ -69,10 +69,9 @@ int main(void)
srand(time(NULL));
bool homebrew = init_services();
init_screens();
init_qr();
int theme_count = 0;
Theme_s * themes_list = NULL;
themes_list = NULL;
theme_count = 0;
Result res = get_themes(&themes_list, &theme_count);
if (R_FAILED(res))
{
@@ -126,9 +125,13 @@ int main(void)
} else if (kDown & KEY_R)
{
qr_mode = !qr_mode;
if (qr_mode) init_qr();
else exit_qr();
continue;
}
if (qr_mode) continue;
if (themes_list == NULL && !splash_mode)
continue;