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

Function readString

launcher/minecraft/OneSixVersionFormat.cpp:48–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46using namespace Json;
47
48static void readString(const QJsonObject& root, const QString& key, QString& variable)
49{
50 if (root.contains(key)) {
51 variable = requireString(root.value(key));
52 }
53}
54
55LibraryPtr OneSixVersionFormat::libraryFromJson(ProblemContainer& problems, const QJsonObject& libObj, const QString& filename)
56{

Callers 2

libraryFromJsonMethod · 0.70
versionFileFromJsonMethod · 0.70

Calls 2

valueMethod · 0.80
containsMethod · 0.45

Tested by

no test coverage detected