Add support for playing sounds at given points during the cutscene
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11310 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
@@ -42,6 +42,14 @@ namespace StringUtils
|
||||
rhs.c_str() )==0;
|
||||
} // hasSuffix
|
||||
|
||||
bool startsWith(const std::string& str, const std::string& prefix)
|
||||
{
|
||||
if (str.length() < prefix.length())
|
||||
return false;
|
||||
else
|
||||
return strncmp(str.c_str(), prefix.c_str(), prefix.size())==0;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------------
|
||||
/** Returns the path of a filename, i.e. everything till the last '/'.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user