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