diff options
author | Andrew <forkk@forkk.net> | 2013-03-06 12:32:15 -0600 |
---|---|---|
committer | Andrew <forkk@forkk.net> | 2013-03-06 12:32:15 -0600 |
commit | 69040f923b0344de214d6f1fc4553d223df7d2d6 (patch) | |
tree | cfbf6ea23290654a65147bc5df59cf10b1be868a /plugins/stdinstance/stdinstance.cpp | |
parent | 36396f7c6aca9fcc61c8620e10c31ed2c8999ebd (diff) | |
download | MultiMC-69040f923b0344de214d6f1fc4553d223df7d2d6.tar MultiMC-69040f923b0344de214d6f1fc4553d223df7d2d6.tar.gz MultiMC-69040f923b0344de214d6f1fc4553d223df7d2d6.tar.lz MultiMC-69040f923b0344de214d6f1fc4553d223df7d2d6.tar.xz MultiMC-69040f923b0344de214d6f1fc4553d223df7d2d6.zip |
Added a function to get an instance's type.
Diffstat (limited to 'plugins/stdinstance/stdinstance.cpp')
-rw-r--r-- | plugins/stdinstance/stdinstance.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/plugins/stdinstance/stdinstance.cpp b/plugins/stdinstance/stdinstance.cpp index 217514a3..077b6b15 100644 --- a/plugins/stdinstance/stdinstance.cpp +++ b/plugins/stdinstance/stdinstance.cpp @@ -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; +} |