aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--launcher/BaseInstance.cpp10
-rw-r--r--launcher/BaseInstance.h1
2 files changed, 11 insertions, 0 deletions
diff --git a/launcher/BaseInstance.cpp b/launcher/BaseInstance.cpp
index e6d4d8e3..3b261678 100644
--- a/launcher/BaseInstance.cpp
+++ b/launcher/BaseInstance.cpp
@@ -154,6 +154,16 @@ void BaseInstance::setManagedPack(const QString& type, const QString& id, const
settings()->set("ManagedPackVersionName", version);
}
+void BaseInstance::copyManagedPack(BaseInstance& other)
+{
+ settings()->set("ManagedPack", other.isManagedPack());
+ settings()->set("ManagedPackType", other.getManagedPackType());
+ settings()->set("ManagedPackID", other.getManagedPackID());
+ settings()->set("ManagedPackName", other.getManagedPackName());
+ settings()->set("ManagedPackVersionID", other.getManagedPackVersionID());
+ settings()->set("ManagedPackVersionName", other.getManagedPackVersionName());
+}
+
int BaseInstance::getConsoleMaxLines() const
{
auto lineSetting = m_settings->getSetting("ConsoleMaxLines");
diff --git a/launcher/BaseInstance.h b/launcher/BaseInstance.h
index 3af104e9..653d1378 100644
--- a/launcher/BaseInstance.h
+++ b/launcher/BaseInstance.h
@@ -147,6 +147,7 @@ public:
QString getManagedPackVersionID();
QString getManagedPackVersionName();
void setManagedPack(const QString& type, const QString& id, const QString& name, const QString& versionId, const QString& version);
+ void copyManagedPack(BaseInstance& other);
/// guess log level from a line of game log
virtual MessageLevel::Enum guessLevel(const QString &line, MessageLevel::Enum level)