fixed aligment and added a newline after temp_path within launchApplyThemeTask func, and newline before

This commit is contained in:
NightlyFox 2018-09-23 19:07:23 -05:00
parent f7d1f7a834
commit 59f2e4d1ed

View File

@ -53,14 +53,17 @@ void launchMenuBackTask() {
} }
} }
void launchApplyThemeTask(menuEntry_s* arg) { void launchApplyThemeTask(menuEntry_s* arg) {
config_t cfg = {0}; config_t cfg = {0};
config_init(&cfg); config_init(&cfg);
if(!config_read_file(&cfg, arg->path)) { if(!config_read_file(&cfg, arg->path)) {
menuCreateMsgBox(780, 300, "Something went wrong, and the theme could not be loaded!"); menuCreateMsgBox(780, 300, "Something went wrong, and the theme could not be loaded!");
return; return;
} }
char tmp_path[PATH_MAX] = {0}; char tmp_path[PATH_MAX] = {0};
#ifdef __SWITCH__ #ifdef __SWITCH__
tmp_path[0] = '/'; tmp_path[0] = '/';
#endif #endif