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

Function requireObject

launcher/Json.cpp:89–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87 return requireDocument(FS::read(filename), what);
88}
89QJsonObject requireObject(const QJsonDocument& doc, const QString& what)
90{
91 if (!doc.isObject()) {
92 throw JsonException(what + " is not an object");
93 }
94 return doc.object();
95}
96QJsonArray requireArray(const QJsonDocument& doc, const QString& what)
97{
98 if (!doc.isArray()) {

Callers 15

getLibraryStringFunction · 0.85
parseMethod · 0.85
modrinthVersionsTaskMethod · 0.85
modrinthProjectsTaskMethod · 0.85
flameVersionsTaskMethod · 0.85
flameProjectsTaskMethod · 0.85
loadIndexedPackMethod · 0.85
loadShareCodeFunction · 0.85
loadShareCodeResponseFunction · 0.85
loadVersionLoaderFunction · 0.85
loadVersionKeepsFunction · 0.85
loadVersionDeletesFunction · 0.85

Calls 2

JsonExceptionClass · 0.85
objectMethod · 0.80

Tested by

no test coverage detected