| 454 | } |
| 455 | |
| 456 | bool PackProfile::customize(int index) |
| 457 | { |
| 458 | auto patch = getComponent(index); |
| 459 | if (!patch->isCustomizable()) { |
| 460 | qCDebug(instanceProfileC) << d->m_instance->name() << "|" << "Patch" << patch->getID() << "is not customizable"; |
| 461 | return false; |
| 462 | } |
| 463 | if (!patch->customize()) { |
| 464 | qCCritical(instanceProfileC) << d->m_instance->name() << "|" << "Patch" << patch->getID() << "could not be customized"; |
| 465 | return false; |
| 466 | } |
| 467 | invalidateLaunchProfile(); |
| 468 | scheduleSave(); |
| 469 | return true; |
| 470 | } |
| 471 | |
| 472 | bool PackProfile::revertToBase(int index) |
| 473 | { |
nothing calls this directly
no test coverage detected