From b2e81528af1bb7f725c4b84029edc7236bc3c0fc Mon Sep 17 00:00:00 2001 From: Helloman892 <1565516+Helloman892@users.noreply.github.com> Date: Sun, 31 Dec 2017 15:55:29 +0000 Subject: [PATCH] added warning if not theme --- source/main.c | 4 ++-- source/themes.c | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/source/main.c b/source/main.c index ea91ed1..de8b8a2 100644 --- a/source/main.c +++ b/source/main.c @@ -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); } diff --git a/source/themes.c b/source/themes.c index b95495e..ce216c3 100644 --- a/source/themes.c +++ b/source/themes.c @@ -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); }