1) Added proper handling and detection of installed addons
2) Moved addon related data files into a separate 'addons' directory. 3) Directory names of addons are now lower case. (Still addons are not stable enough to be used!) git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7252 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
@@ -112,6 +112,16 @@ namespace StringUtils
|
||||
return name;
|
||||
} // toUpperCase
|
||||
|
||||
//-------------------------------------------------------------------------
|
||||
/** Returns a string converted to lower case.
|
||||
*/
|
||||
std::string toLowerCase(const std::string& str)
|
||||
{
|
||||
std::string name = str;
|
||||
std::transform(name.begin(), name.end(), name.begin(), ::tolower);
|
||||
return name;
|
||||
} // toLowerCase
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
/** Splits a string into substrings separated by a certain character, and
|
||||
* returns a std::vector of all those substring. E.g.:
|
||||
|
||||
Reference in New Issue
Block a user