summaryrefslogtreecommitdiffstats
path: root/logic/BaseInstance.h
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2014-06-08 20:11:09 +0200
committerPetr Mrázek <peterix@gmail.com>2014-06-09 01:38:31 +0200
commitbf7b07050873770bd0b2ed5d73965b5a88d7a351 (patch)
treef29a06ac56d9197ac7bbd1df19faa7824e9d6cc5 /logic/BaseInstance.h
parent223a7aba7bfa6019d8a2cfa5e8f8a4791a96d136 (diff)
downloadMultiMC-bf7b07050873770bd0b2ed5d73965b5a88d7a351.tar
MultiMC-bf7b07050873770bd0b2ed5d73965b5a88d7a351.tar.gz
MultiMC-bf7b07050873770bd0b2ed5d73965b5a88d7a351.tar.lz
MultiMC-bf7b07050873770bd0b2ed5d73965b5a88d7a351.tar.xz
MultiMC-bf7b07050873770bd0b2ed5d73965b5a88d7a351.zip
Show texture/resource packs when appropriate.
Diffstat (limited to 'logic/BaseInstance.h')
-rw-r--r--logic/BaseInstance.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/logic/BaseInstance.h b/logic/BaseInstance.h
index bdd2f1be..2eba1fff 100644
--- a/logic/BaseInstance.h
+++ b/logic/BaseInstance.h
@@ -25,6 +25,7 @@
#include "logic/BaseVersionList.h"
#include "logic/auth/MojangAccount.h"
+class ModList;
class QDialog;
class QDir;
class Task;
@@ -110,6 +111,19 @@ public:
virtual bool shouldUpdate() const = 0;
virtual void setShouldUpdate(bool val) = 0;
+ ////// Mod Lists //////
+ virtual std::shared_ptr<ModList> resourcePackList()
+ {
+ return nullptr;
+ }
+ virtual std::shared_ptr<ModList> texturePackList()
+ {
+ return nullptr;
+ }
+
+ /// Traits. Normally inside the version, depends on instance implementation.
+ virtual QSet <QString> traits() = 0;
+
/// Get the curent base jar of this instance. By default, it's the
/// versions/$version/$version.jar
QString baseJar() const;