diff options
author | Petr Mrázek <peterix@gmail.com> | 2014-06-08 20:11:09 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2014-06-09 01:38:31 +0200 |
commit | bf7b07050873770bd0b2ed5d73965b5a88d7a351 (patch) | |
tree | f29a06ac56d9197ac7bbd1df19faa7824e9d6cc5 /logic/BaseInstance.h | |
parent | 223a7aba7bfa6019d8a2cfa5e8f8a4791a96d136 (diff) | |
download | MultiMC-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.h | 14 |
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; |