mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-29 03:32:06 +00:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user