serialize cvars
This commit is contained in:
parent
74ace89d6e
commit
aed85a25a2
9 changed files with 115 additions and 5 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue