- implemented saving of new format savegames as zips. The code for that was adapted from zipdir.c.
This commit is contained in:
parent
810ef8f775
commit
ac3c00883d
15 changed files with 251 additions and 102 deletions
|
|
@ -962,32 +962,6 @@ PClass *FArchive::ReadStoredClass (const PClass *wanttype)
|
|||
return type;
|
||||
}
|
||||
|
||||
void FArchive::UserWriteClass (PClass *type)
|
||||
{
|
||||
BYTE id;
|
||||
|
||||
if (type == NULL)
|
||||
{
|
||||
id = 2;
|
||||
Write (&id, 1);
|
||||
}
|
||||
else
|
||||
{
|
||||
DWORD *arcid;
|
||||
if (NULL == (arcid = ClassToArchive.CheckKey(type)))
|
||||
{
|
||||
id = 1;
|
||||
Write (&id, 1);
|
||||
WriteClass (type);
|
||||
}
|
||||
else
|
||||
{
|
||||
id = 0;
|
||||
Write (&id, 1);
|
||||
WriteCount (*arcid);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void FArchive::UserReadClass (PClass *&type)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue