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

Function requireObject

launcher/Json.cpp:73–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71 return requireDocument(FS::read(filename), what);
72}
73QJsonObject requireObject(const QJsonDocument &doc, const QString &what)
74{
75 if (!doc.isObject())
76 {
77 throw JsonException(what + " is not an object");
78 }
79 return doc.object();
80}
81QJsonArray requireArray(const QJsonDocument &doc, const QString &what)
82{
83 if (!doc.isArray())

Callers 15

loadIndexedPackMethod · 0.85
loadVersionLoaderFunction · 0.85
loadVersionMethod · 0.85
versionSucceededMethod · 0.85
fileListSucceededMethod · 0.85
runMethod · 0.85
loadMinecraftV1Function · 0.85
loadManifestV1Function · 0.85
loadManifestMethod · 0.85
parseFromBytesMethod · 0.85
loadIndexedPackMethod · 0.85

Calls 2

JsonExceptionClass · 0.85
objectMethod · 0.80

Tested by

no test coverage detected