added warning if not theme
This commit is contained in:
@@ -550,12 +550,12 @@ int main(void)
|
||||
{
|
||||
change_selected(current_list, -1);
|
||||
}
|
||||
else if(kDown & KEY_DOWN)
|
||||
else if(kDown & KEY_DOWN)
|
||||
{
|
||||
change_selected(current_list, 1);
|
||||
}
|
||||
// Quick moving
|
||||
else if(kDown & KEY_LEFT)
|
||||
else if(kDown & KEY_LEFT)
|
||||
{
|
||||
change_selected(current_list, -ENTRIES_PER_SCREEN);
|
||||
}
|
||||
|
||||
@@ -78,6 +78,7 @@ static Result install_theme_internal(Entry_List_s themes, int installmode)
|
||||
{
|
||||
free(body);
|
||||
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);
|
||||
}
|
||||
|
||||
@@ -135,6 +136,7 @@ static Result install_theme_internal(Entry_List_s themes, int installmode)
|
||||
{
|
||||
free(body);
|
||||
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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user