made the add-on type case insensitive
This commit is contained in:
parent
9622d9214e
commit
e552237a2f
1 changed files with 2 additions and 1 deletions
|
@ -53,8 +53,9 @@ bool check_names_legal(const config& dir)
|
|||
return true;
|
||||
}
|
||||
|
||||
ADDON_TYPE get_addon_type(const std::string& str)
|
||||
ADDON_TYPE get_addon_type(const std::string& type)
|
||||
{
|
||||
std::string str = utils::lowercase(type);
|
||||
if (str.empty())
|
||||
return ADDON_UNKNOWN;
|
||||
else if (str == "campaign")
|
||||
|
|
Loading…
Add table
Reference in a new issue