From f5dd25369a99431d21833fc7ced0fc8c4c2f2993 Mon Sep 17 00:00:00 2001 From: LiquidFenrir Date: Sun, 31 Dec 2017 16:47:13 +0100 Subject: [PATCH] check return values when installing themes before checking the installed mark --- source/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/main.c b/source/main.c index c203c56..ea91ed1 100644 --- a/source/main.c +++ b/source/main.c @@ -421,7 +421,7 @@ int main(void) else if((kDown | kHeld) & KEY_DUP) { draw_install(INSTALL_SINGLE); - theme_install(*current_entry); + if(R_SUCCEEDED(theme_install(*current_entry))) { for(int i = 0; i < current_list->entries_count; i++) { @@ -437,7 +437,7 @@ int main(void) else if((kDown | kHeld) & KEY_DRIGHT) { draw_install(INSTALL_NO_BGM); - no_bgm_install(*current_entry); + if(R_SUCCEEDED(no_bgm_install(*current_entry))) { for(int i = 0; i < current_list->entries_count; i++) {