MCPcopy Create free account
hub / github.com/ElyPrismLauncher/Launcher / copyManagedPack

Method copyManagedPack

launcher/BaseInstance.cpp:192–206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

190}
191
192void BaseInstance::copyManagedPack(BaseInstance& other)
193{
194 m_settings->set("ManagedPack", other.isManagedPack());
195 m_settings->set("ManagedPackType", other.getManagedPackType());
196 m_settings->set("ManagedPackID", other.getManagedPackID());
197 m_settings->set("ManagedPackName", other.getManagedPackName());
198 m_settings->set("ManagedPackVersionID", other.getManagedPackVersionID());
199 m_settings->set("ManagedPackVersionName", other.getManagedPackVersionName());
200
201 if (APPLICATION->settings()->get("AutomaticJavaSwitch").toBool() && m_settings->get("AutomaticJava").toBool() &&
202 m_settings->get("OverrideJavaLocation").toBool()) {
203 m_settings->set("OverrideJavaLocation", false);
204 m_settings->set("JavaPath", "");
205 }
206}
207
208QStringList BaseInstance::getLinkedInstances() const
209{

Callers 2

createInstanceMethod · 0.80
createInstanceMethod · 0.80

Calls 9

isManagedPackMethod · 0.80
getManagedPackTypeMethod · 0.80
getManagedPackIDMethod · 0.80
getManagedPackNameMethod · 0.80
setMethod · 0.45
getMethod · 0.45
settingsMethod · 0.45

Tested by

no test coverage detected