| 949 | } |
| 950 | |
| 951 | std::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 | |
| 969 | bool PackProfile::setComponentVersion(const QString& uid, const QString& version, bool important) |
| 970 | { |
no test coverage detected