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

Function readString

launcher/minecraft/OneSixVersionFormat.cpp:8–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6using namespace Json;
7
8static void readString(const QJsonObject &root, const QString &key, QString &variable)
9{
10 if (root.contains(key))
11 {
12 variable = requireString(root.value(key));
13 }
14}
15
16LibraryPtr OneSixVersionFormat::libraryFromJson(ProblemContainer & problems, const QJsonObject &libObj, const QString &filename)
17{

Callers 2

libraryFromJsonMethod · 0.70
versionFileFromJsonMethod · 0.70

Calls 1

containsMethod · 0.45

Tested by

no test coverage detected