got rid of redundent code in menu-entry.c file
This commit is contained in:
parent
59f2e4d1ed
commit
f89e33121f
@ -307,10 +307,8 @@ bool menuEntryLoad(menuEntry_s* me, const char* name, bool shortcut) {
|
|||||||
if (themeInfo != NULL) {
|
if (themeInfo != NULL) {
|
||||||
if(config_setting_lookup_string(themeInfo, "name", &name))
|
if(config_setting_lookup_string(themeInfo, "name", &name))
|
||||||
strncpy(me->name, name, sizeof(me->name)-1);
|
strncpy(me->name, name, sizeof(me->name)-1);
|
||||||
if(!config_setting_lookup_string(themeInfo, "author", &author))
|
config_setting_lookup_string(themeInfo, "author", &author);
|
||||||
author = textGetString(StrId_DefaultPublisher);
|
config_setting_lookup_string(themeInfo, "version", &version);
|
||||||
if(!config_setting_lookup_string(themeInfo, "version", &version))
|
|
||||||
version = "1.0.0";
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user