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

Function parseVersionInternal

launcher/meta/JsonFormat.cpp:66–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64}
65
66static std::shared_ptr<Version> parseVersionInternal(const QJsonObject &obj)
67{
68 VersionPtr version = parseCommonVersion(requireString(obj, "uid"), obj);
69
70 version->setData(OneSixVersionFormat::versionFileFromJson(QJsonDocument(obj),
71 QString("%1/%2.json").arg(version->uid(), version->version()),
72 obj.contains("order")));
73 return version;
74}
75
76// Version list / package
77static std::shared_ptr<VersionList> parseVersionListInternal(const QJsonObject &obj)

Callers 1

parseVersionFunction · 0.85

Calls 6

parseCommonVersionFunction · 0.85
QStringClass · 0.85
setDataMethod · 0.45
uidMethod · 0.45
versionMethod · 0.45
containsMethod · 0.45

Tested by

no test coverage detected