From 59f2e4d1ed87e3442328f3dce9cec3108504373e Mon Sep 17 00:00:00 2001 From: NightlyFox Date: Sun, 23 Sep 2018 19:07:23 -0500 Subject: [PATCH] fixed aligment and added a newline after temp_path within launchApplyThemeTask func, and newline before --- common/menu.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/common/menu.c b/common/menu.c index dce8392..9000f3c 100644 --- a/common/menu.c +++ b/common/menu.c @@ -53,14 +53,17 @@ void launchMenuBackTask() { } } + void launchApplyThemeTask(menuEntry_s* arg) { config_t cfg = {0}; config_init(&cfg); + if(!config_read_file(&cfg, arg->path)) { menuCreateMsgBox(780, 300, "Something went wrong, and the theme could not be loaded!"); return; } - char tmp_path[PATH_MAX] = {0}; + char tmp_path[PATH_MAX] = {0}; + #ifdef __SWITCH__ tmp_path[0] = '/'; #endif