MCPcopy Create free account
hub / github.com/FreesmTeam/FreesmLauncher / entitlementToJSONV3

Function entitlementToJSONV3

launcher/minecraft/auth/AccountData.cpp:248–257  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

246}
247
248void entitlementToJSONV3(QJsonObject& parent, MinecraftEntitlement p)
249{
250 if (p.validity == Validity::None) {
251 return;
252 }
253 QJsonObject out;
254 out["ownsMinecraft"] = QJsonValue(p.ownsMinecraft);
255 out["canPlayMinecraft"] = QJsonValue(p.canPlayMinecraft);
256 parent["entitlement"] = out;
257}
258
259bool entitlementFromJSONV3(const QJsonObject& parent, MinecraftEntitlement& out)
260{

Callers 1

saveStateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected