- put the state pointer serializer in a virtual function so that types.cpp can operate without any knowledge of Doom states.

This commit is contained in:
Christoph Oelckers 2020-04-11 19:30:09 +02:00
commit ef8b4c7d5e
5 changed files with 78 additions and 51 deletions

View file

@ -445,6 +445,18 @@ FSerializer &FSerializer::Sprite(const char *key, int32_t &spritenum, int32_t *d
return *this;
}
//==========================================================================
//
// only here so that it can be virtually overridden. Without reference this cannot save anything.
//
//==========================================================================
FSerializer& FSerializer::StatePointer(const char* key, void* ptraddr, bool *res)
{
if (res) *res = false;
return *this;
}
//==========================================================================
//
//