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

Method customize

launcher/minecraft/PackProfile.cpp:456–470  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

454}
455
456bool 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
472bool PackProfile::revertToBase(int index)
473{

Callers

nothing calls this directly

Calls 3

isCustomizableMethod · 0.80
getIDMethod · 0.80
nameMethod · 0.45

Tested by

no test coverage detected