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

Function foreach

launcher/modplatform/legacy_ftb/PackInstallTask.cpp:168–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

166 QJsonArray libs = doc.object().value("libraries").toArray();
167
168 foreach (const QJsonValue& value, libs) {
169 QString nameValue = value.toObject().value("name").toString();
170 if (!nameValue.startsWith("net.minecraftforge")) {
171 continue;
172 }
173
174 GradleSpecifier forgeVersion(nameValue);
175
176 components->setComponentVersion("net.minecraftforge", forgeVersion.version().replace(m_pack.mcVersion, "").replace("-", ""));
177 packJson.remove();
178 fallback = false;
179 break;
180 }
181 }
182
183 if (jarmodDir.exists()) {

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected