From 026bb367bc49e72a33e1b07a7bbaad42fbc77984 Mon Sep 17 00:00:00 2001 From: ZetaDesigns Date: Fri, 17 Nov 2017 22:00:15 +0100 Subject: [PATCH] put themext error out of a void + no shuffle error --- source/draw.c | 4 ---- source/main.c | 7 +++++-- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/source/draw.c b/source/draw.c index 550b901..f2eb509 100644 --- a/source/draw.c +++ b/source/draw.c @@ -68,10 +68,6 @@ void exit_screens(void) static int theme_vertical_scroll = 0; static int splash_vertical_scroll = 0; -void draw_themext_error(void) -{ - throw_error("Theme extdata does not exist\nSet a default theme from the home menu", ERROR); -} void draw_base_interface(void) { diff --git a/source/main.c b/source/main.c index 34675b7..a5ab4c9 100644 --- a/source/main.c +++ b/source/main.c @@ -130,7 +130,7 @@ int main(void) if (R_FAILED(archive_result) && !splash_mode) { - draw_themext_error(); + throw_error("Theme extdata does not exist\nSet a default theme from the home menu", ERROR); continue; } @@ -250,7 +250,10 @@ int main(void) draw_theme_install(SHUFFLE_INSTALL); shuffle_install(themes_list, theme_count); shuffle_theme_count = 0; - } + } + else { + throw_error("You dont have any Shuffle selected.", WARNING); + } } }