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

Method serializeUserProperties

launcher/minecraft/auth/AuthSession.cpp:7–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5#include <QStringList>
6
7QString AuthSession::serializeUserProperties()
8{
9 QJsonObject userAttrs;
10 /*
11 for (auto key : u.properties.keys())
12 {
13 auto array = QJsonArray::fromStringList(u.properties.values(key));
14 userAttrs.insert(key, array);
15 }
16 */
17 QJsonDocument value(userAttrs);
18 return value.toJson(QJsonDocument::Compact);
19
20}
21
22bool AuthSession::MakeOffline(QString offline_playername)
23{

Callers 1

processMinecraftArgsMethod · 0.80

Calls 1

toJsonMethod · 0.80

Tested by

no test coverage detected