fixed aligment and added a newline after temp_path within launchApplyThemeTask func, and newline before
This commit is contained in:
parent
f7d1f7a834
commit
59f2e4d1ed
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user