Optimized tSoundManager.

Added tSoundLoader, a template used for the ResourceLoader.
Fixed PushText on the Console.
Added loading from memory on shaders.
Added FileExtension to get file extension.
Added to Packs ExtractToFile and Add using pointers instead of std::vectors ( to give flexibility ).
And fixed some minor bugs.
This commit is contained in:
spartanj
2010-07-30 00:59:49 -03:00
parent 4c07441c77
commit 39312a23dd
26 changed files with 452 additions and 111 deletions

View File

@@ -328,6 +328,12 @@ bool FileCopy( const std::string& src, const std::string& dst ) {
return false;
}
std::string FileExtension( const std::string& filepath ) {
std::string tstr( filepath.substr( filepath.find_last_of(".") + 1 ) );
toLower( tstr );
return tstr;
}
eeInt GetNumCPUs() {
eeInt nprocs = -1;