MCPcopy Create free account
hub / github.com/PolyMC/PolyMC / serializeFormatVersion

Function serializeFormatVersion

launcher/meta/JsonFormat.cpp:122–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120}
121
122void serializeFormatVersion(QJsonObject& obj, Meta::MetadataVersion version)
123{
124 if(version == MetadataVersion::Invalid)
125 {
126 return;
127 }
128 obj.insert("formatVersion", int(version));
129}
130
131void parseIndex(const QJsonObject &obj, Index *ptr)
132{

Callers 1

versionFileToJsonMethod · 0.85

Calls 1

insertMethod · 0.80

Tested by

no test coverage detected