MCPcopy Create free account
hub / github.com/MultiMC/Launcher / entitlementToJSONV3

Function entitlementToJSONV3

launcher/minecraft/auth/AccountData.cpp:210–218  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

208}
209
210void entitlementToJSONV3(QJsonObject &parent, MinecraftEntitlement p) {
211 if(p.validity == Katabasis::Validity::None) {
212 return;
213 }
214 QJsonObject out;
215 out["ownsMinecraft"] = QJsonValue(p.ownsMinecraft);
216 out["canPlayMinecraft"] = QJsonValue(p.canPlayMinecraft);
217 parent["entitlement"] = out;
218}
219
220bool entitlementFromJSONV3(const QJsonObject &parent, MinecraftEntitlement & out) {
221 auto entitlementObject = parent.value("entitlement").toObject();

Callers 1

saveStateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected