serialize cvars

This commit is contained in:
Ricardo Luís Vaz Silva 2023-11-25 22:27:28 -03:00 committed by Rachael Alexanderson
commit aed85a25a2
9 changed files with 115 additions and 5 deletions

View file

@ -1757,6 +1757,19 @@ void SerializeFunctionPointer(FSerializer &arc, const char *key, FunctionPointer
}
}
bool FSerializer::ReadOptionalInt(const char * key, int &into)
{
if(!isReading()) return false;
auto val = r->FindKey(key);
if(val && val->IsInt())
{
into = val->GetInt();
return true;
}
return false;
}
#include "renderstyle.h"
FSerializer& Serialize(FSerializer& arc, const char* key, FRenderStyle& style, FRenderStyle* def)
{