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

Method customize

launcher/minecraft/PackProfile.cpp:486–502  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

484}
485
486bool PackProfile::customize(int index)
487{
488 auto patch = getComponent(index);
489 if (!patch->isCustomizable())
490 {
491 qDebug() << "Patch" << patch->getID() << "is not customizable";
492 return false;
493 }
494 if(!patch->customize())
495 {
496 qCritical() << "Patch" << patch->getID() << "could not be customized";
497 return false;
498 }
499 invalidateLaunchProfile();
500 scheduleSave();
501 return true;
502}
503
504bool PackProfile::revertToBase(int index)
505{

Callers

nothing calls this directly

Calls 2

isCustomizableMethod · 0.80
getIDMethod · 0.80

Tested by

no test coverage detected