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

Method getProfile

launcher/minecraft/PackProfile.cpp:951–967  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

949}
950
951std::shared_ptr<LaunchProfile> PackProfile::getProfile() const
952{
953 if (!d->m_profile) {
954 try {
955 auto profile = std::make_shared<LaunchProfile>();
956 for (auto file : d->components) {
957 qCDebug(instanceProfileC) << d->m_instance->name() << "|" << "Applying" << file->getID()
958 << (file->getProblemSeverity() == ProblemSeverity::Error ? "ERROR" : "GOOD");
959 file->applyTo(profile.get());
960 }
961 d->m_profile = profile;
962 } catch (const Exception& error) {
963 qCWarning(instanceProfileC) << d->m_instance->name() << "|" << "Couldn't apply profile patches because: " << error.cause();
964 }
965 }
966 return d->m_profile;
967}
968
969bool PackProfile::setComponentVersion(const QString& uid, const QString& version, bool important)
970{

Callers 15

traitsMethod · 0.80
getClassPathMethod · 0.80
getMainClassMethod · 0.80
getNativeJarsMethod · 0.80
extraArgumentsMethod · 0.80
processMinecraftArgsMethod · 0.80
createLaunchScriptMethod · 0.80
verboseDescriptionMethod · 0.80
getJarModsMethod · 0.80
executeTaskMethod · 0.80
executeTaskMethod · 0.80

Calls 6

getIDMethod · 0.80
causeMethod · 0.80
nameMethod · 0.45
getProblemSeverityMethod · 0.45
applyToMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected