mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-08-18 06:55:48 +03:00
Added a way to update the texture atlas to the current state of the shapes ( updates offsets and dest size ).
A lot of minor fixes.
This commit is contained in:
@@ -60,13 +60,11 @@ bool cSoundBuffer::LoadFromFile(const std::string& Filename) {
|
||||
|
||||
bool cSoundBuffer::LoadFromPack( cPack* Pack, const std::string& FilePackPath ) {
|
||||
bool Ret = false;
|
||||
cPack::PointerData PData;
|
||||
cPack::SafePointerData PData;
|
||||
|
||||
if ( Pack->IsOpen() && Pack->ExtractFileToMemory( FilePackPath, PData ) )
|
||||
Ret = LoadFromMemory( reinterpret_cast<const char*> ( PData.Data ), PData.DataSize );
|
||||
|
||||
eeSAFE_DELETE( PData.Data );
|
||||
|
||||
return Ret;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user