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:
auria
2012-06-16 23:35:51 +00:00
parent f7ce2fcd44
commit aced31cbfa
7 changed files with 81 additions and 5 deletions
+8
View File
@@ -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 '/'.
*/