mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-06-29 09:59:59 +03:00
Added a function to get an instance's type.
This commit is contained in:
parent
36396f7c6a
commit
69040f923b
4 changed files with 27 additions and 5 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue