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

Function foreach

launcher/modplatform/legacy_ftb/PackInstallTask.cpp:147–161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145 QJsonArray libs = doc.object().value("libraries").toArray();
146
147 foreach (const QJsonValue &value, libs)
148 {
149 QString nameValue = value.toObject().value("name").toString();
150 if(!nameValue.startsWith("net.minecraftforge"))
151 {
152 continue;
153 }
154
155 GradleSpecifier forgeVersion(nameValue);
156
157 components->setComponentVersion("net.minecraftforge", forgeVersion.version().replace(m_pack.mcVersion, "").replace("-", ""));
158 packJson.remove();
159 fallback = false;
160 break;
161 }
162
163 }
164

Callers

nothing calls this directly

Calls 5

setComponentVersionMethod · 0.80
toStringMethod · 0.45
replaceMethod · 0.45
versionMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected