Moved safe SafeDataPointer to Utils as a generic class.

This commit is contained in:
spartanj@gmail.com
2011-07-09 03:21:55 -03:00
parent e26ca9f87a
commit 5c80592528
15 changed files with 73 additions and 42 deletions

View File

@@ -60,7 +60,7 @@ bool cSoundBuffer::LoadFromFile(const std::string& Filename) {
bool cSoundBuffer::LoadFromPack( cPack* Pack, const std::string& FilePackPath ) {
bool Ret = false;
cPack::SafePointerData PData;
SafeDataPointer PData;
if ( Pack->IsOpen() && Pack->ExtractFileToMemory( FilePackPath, PData ) )
Ret = LoadFromMemory( reinterpret_cast<const char*> ( PData.Data ), PData.DataSize );