mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-08-18 06:55:48 +03:00
Moved safe SafeDataPointer to Utils as a generic class.
This commit is contained in:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user