added warning if not theme

This commit is contained in:
Helloman892
2017-12-31 15:55:29 +00:00
parent f5dd25369a
commit b2e81528af
2 changed files with 4 additions and 2 deletions

View File

@@ -550,12 +550,12 @@ int main(void)
{ {
change_selected(current_list, -1); change_selected(current_list, -1);
} }
else if(kDown & KEY_DOWN) else if(kDown & KEY_DOWN)
{ {
change_selected(current_list, 1); change_selected(current_list, 1);
} }
// Quick moving // Quick moving
else if(kDown & KEY_LEFT) else if(kDown & KEY_LEFT)
{ {
change_selected(current_list, -ENTRIES_PER_SCREEN); change_selected(current_list, -ENTRIES_PER_SCREEN);
} }

View File

@@ -78,6 +78,7 @@ static Result install_theme_internal(Entry_List_s themes, int installmode)
{ {
free(body); free(body);
DEBUG("body not found\n"); DEBUG("body not found\n");
throw_error("No body_LZ.bin found - is this a theme?", ERROR_LEVEL_WARNING);
return MAKERESULT(RL_PERMANENT, RS_CANCELED, RM_APPLICATION, RD_NOT_FOUND); return MAKERESULT(RL_PERMANENT, RS_CANCELED, RM_APPLICATION, RD_NOT_FOUND);
} }
@@ -135,6 +136,7 @@ static Result install_theme_internal(Entry_List_s themes, int installmode)
{ {
free(body); free(body);
DEBUG("body not found\n"); DEBUG("body not found\n");
throw_error("No body_LZ.bin found - is this a theme?", ERROR_LEVEL_WARNING);
return MAKERESULT(RL_PERMANENT, RS_CANCELED, RM_APPLICATION, RD_NOT_FOUND); return MAKERESULT(RL_PERMANENT, RS_CANCELED, RM_APPLICATION, RD_NOT_FOUND);
} }