got rid of redundent code in menu-entry.c file

This commit is contained in:
NightlyFox 2018-09-24 12:32:38 -05:00
parent 59f2e4d1ed
commit f89e33121f

View File

@ -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";
} }
} }