chore: add helper function for copying managed pack data between insts.
Signed-off-by: flow <flowlnlnln@gmail.com>
This commit is contained in:
parent
c6bcb6228b
commit
ec9ddc4f22
@ -154,6 +154,16 @@ void BaseInstance::setManagedPack(const QString& type, const QString& id, const
|
|||||||
settings()->set("ManagedPackVersionName", version);
|
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
|
int BaseInstance::getConsoleMaxLines() const
|
||||||
{
|
{
|
||||||
auto lineSetting = m_settings->getSetting("ConsoleMaxLines");
|
auto lineSetting = m_settings->getSetting("ConsoleMaxLines");
|
||||||
|
@ -147,6 +147,7 @@ public:
|
|||||||
QString getManagedPackVersionID();
|
QString getManagedPackVersionID();
|
||||||
QString getManagedPackVersionName();
|
QString getManagedPackVersionName();
|
||||||
void setManagedPack(const QString& type, const QString& id, const QString& name, const QString& versionId, const QString& version);
|
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
|
/// guess log level from a line of game log
|
||||||
virtual MessageLevel::Enum guessLevel(const QString &line, MessageLevel::Enum level)
|
virtual MessageLevel::Enum guessLevel(const QString &line, MessageLevel::Enum level)
|
||||||
|
Loading…
Reference in New Issue
Block a user