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

Function requireArray

launcher/Json.cpp:96–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94 return doc.object();
95}
96QJsonArray requireArray(const QJsonDocument& doc, const QString& what)
97{
98 if (!doc.isArray()) {
99 throw JsonException(what + " is not an array");
100 }
101 return doc.array();
102}
103
104void writeString(QJsonObject& to, const QString& key, const QString& value)
105{

Callers 15

requireIsArrayOfFunction · 0.85
modrinthProjectsTaskMethod · 0.85
flameVersionsTaskMethod · 0.85
flameProjectsTaskMethod · 0.85
loadIndexedPackMethod · 0.85
loadShareCodeFunction · 0.85
loadVersionModFunction · 0.85
loadVersionKeepsFunction · 0.85
loadVersionDeletesFunction · 0.85
loadVersionMethod · 0.85
loadPackFunction · 0.85
loadPackBuildFunction · 0.85

Calls 1

JsonExceptionClass · 0.85

Tested by

no test coverage detected