MCPcopy Create free account
hub / github.com/PolyMC/PolyMC / getProfile

Method getProfile

launcher/minecraft/PackProfile.cpp:943–963  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

941}
942
943std::shared_ptr<LaunchProfile> PackProfile::getProfile() const
944{
945 if(!d->m_profile)
946 {
947 try
948 {
949 auto profile = std::make_shared<LaunchProfile>();
950 for(auto file: d->components)
951 {
952 qDebug() << "Applying" << file->getID() << (file->getProblemSeverity() == ProblemSeverity::Error ? "ERROR" : "GOOD");
953 file->applyTo(profile.get());
954 }
955 d->m_profile = profile;
956 }
957 catch (const Exception &error)
958 {
959 qWarning() << "Couldn't apply profile patches because: " << error.cause();
960 }
961 }
962 return d->m_profile;
963}
964
965bool PackProfile::setComponentVersion(const QString& uid, const QString& version, bool important)
966{

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
executeTaskMethod · 0.80

Calls 5

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

Tested by

no test coverage detected