CFilePacker now takes version+magic string in the ctor (allows writing data in one go, so vfs_store can be used).

This was SVN commit r1505.
This commit is contained in:
janwas
2004-12-15 14:26:21 +00:00
parent 6539cfc935
commit 11f3b3c575
4 changed files with 18 additions and 13 deletions
+2 -2
View File
@@ -88,7 +88,7 @@ CSkeletonAnimDef* CSkeletonAnimDef::Load(const char* filename)
// Save: try to save anim to file
void CSkeletonAnimDef::Save(const char* filename,const CSkeletonAnimDef* anim)
{
CFilePacker packer;
CFilePacker packer(FILE_VERSION, "PSSA");
// pack up all the data
packer.PackString(CStr(anim->m_Name));
@@ -98,6 +98,6 @@ void CSkeletonAnimDef::Save(const char* filename,const CSkeletonAnimDef* anim)
packer.PackRaw(anim->m_Keys,anim->m_NumKeys*anim->m_NumFrames*sizeof(Key));
// now write it
packer.Write(filename,FILE_VERSION,"PSSA");
packer.Write(filename);
}