MCPcopy Create free account
hub / github.com/MultiMC/Launcher / customize

Method customize

launcher/minecraft/PackProfile.cpp:697–713  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

695}
696
697bool PackProfile::customize(int index)
698{
699 auto patch = getComponent(index);
700 if (!patch->isCustomizable())
701 {
702 qDebug() << "Patch" << patch->getID() << "is not customizable";
703 return false;
704 }
705 if(!patch->customize())
706 {
707 qCritical() << "Patch" << patch->getID() << "could not be customized";
708 return false;
709 }
710 invalidateLaunchProfile();
711 scheduleSave();
712 return true;
713}
714
715bool PackProfile::revertToBase(int index)
716{

Callers

nothing calls this directly

Calls 2

isCustomizableMethod · 0.80
getIDMethod · 0.80

Tested by

no test coverage detected