mirror of
https://github.com/UltimMC/Launcher.git
synced 2025-12-16 00:47:14 +00:00
Added a function to get an instance's type.
This commit is contained in:
@@ -21,11 +21,12 @@
|
||||
|
||||
#include <javautils.h>
|
||||
|
||||
StdInstance::StdInstance(const QString &rootDir, QObject *parent) :
|
||||
StdInstance::StdInstance(const QString &rootDir, const InstanceTypeInterface *iType, QObject *parent) :
|
||||
Instance(rootDir, parent)
|
||||
{
|
||||
settings().registerSetting(new Setting("lastVersionUpdate", 0));
|
||||
m_instType = iType;
|
||||
|
||||
settings().registerSetting(new Setting("lastVersionUpdate", 0));
|
||||
}
|
||||
|
||||
bool StdInstance::shouldUpdateCurrentVersion()
|
||||
@@ -55,3 +56,8 @@ void StdInstance::updateCurrentVersion(bool keepCurrent)
|
||||
setCurrentVersion(newVersion);
|
||||
}
|
||||
}
|
||||
|
||||
const InstanceTypeInterface *StdInstance::instanceType() const
|
||||
{
|
||||
return m_instType;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user