mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-21 20:26:41 +00:00
made the add-on type case insensitive
This commit is contained in:
parent
9622d9214e
commit
e552237a2f
@ -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…
x
Reference in New Issue
Block a user