MCPcopy Create free account
hub / github.com/ElyPrismLauncher/Launcher / mapMCVersionToModrinth

Method mapMCVersionToModrinth

launcher/modplatform/ResourceAPI.cpp:275–285  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

273}
274
275QString ResourceAPI::mapMCVersionToModrinth(Version v) const
276{
277 static const QString preString = " Pre-Release ";
278 auto verStr = v.toString();
279
280 if (verStr.contains(preString)) {
281 verStr.replace(preString, "-pre");
282 }
283 verStr.replace(" ", "-");
284 return verStr;
285}
286
287std::pair<Task::Ptr, QByteArray*> ResourceAPI::getProject(QString addonId) const
288{

Callers

nothing calls this directly

Calls 3

toStringMethod · 0.45
containsMethod · 0.45
replaceMethod · 0.45

Tested by

no test coverage detected