summaryrefslogtreecommitdiffstats
path: root/logic/LegacyInstance.h
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2014-12-18 02:48:14 +0100
committerPetr Mrázek <peterix@gmail.com>2014-12-27 20:50:33 +0100
commita30a9559c749446165ec84e737fe85b44a462584 (patch)
tree9e6bfadfc4e10f01ab2580c33e2c682d57b4ce99 /logic/LegacyInstance.h
parent01f44e0f39a808d3d5285c394d83a8fc80421890 (diff)
downloadMultiMC-a30a9559c749446165ec84e737fe85b44a462584.tar
MultiMC-a30a9559c749446165ec84e737fe85b44a462584.tar.gz
MultiMC-a30a9559c749446165ec84e737fe85b44a462584.tar.lz
MultiMC-a30a9559c749446165ec84e737fe85b44a462584.tar.xz
MultiMC-a30a9559c749446165ec84e737fe85b44a462584.zip
NOISSUE Fix jar mods for OnesSix
Diffstat (limited to 'logic/LegacyInstance.h')
-rw-r--r--logic/LegacyInstance.h30
1 files changed, 27 insertions, 3 deletions
diff --git a/logic/LegacyInstance.h b/logic/LegacyInstance.h
index d21d2ff4..b91be7c1 100644
--- a/logic/LegacyInstance.h
+++ b/logic/LegacyInstance.h
@@ -56,6 +56,27 @@ public:
QString resourceDir() const;
virtual QString instanceConfigFolder() const override;
+ /// Get the curent base jar of this instance. By default, it's the
+ /// versions/$version/$version.jar
+ QString baseJar() const;
+
+ /// the default base jar of this instance
+ QString defaultBaseJar() const;
+ /// the default custom base jar of this instance
+ QString defaultCustomBaseJar() const;
+
+ /*!
+ * Whether or not custom base jar is used
+ */
+ bool shouldUseCustomBaseJar() const;
+ void setShouldUseCustomBaseJar(bool val);
+
+ /*!
+ * The value of the custom base jar
+ */
+ QString customBaseJar() const;
+ void setCustomBaseJar(QString val);
+
/*!
* Whether or not the instance's minecraft.jar needs to be rebuilt.
* If this is true, when the instance launches, its jar mods will be
@@ -92,11 +113,14 @@ public:
virtual bool prepareForLaunch(AuthSessionPtr account, QString & launchScript) override;
virtual void cleanupAfterRun() override;
- virtual QString defaultBaseJar() const override;
- virtual QString defaultCustomBaseJar() const override;
-
virtual QString getStatusbarDescription() override;
+protected:
+ std::shared_ptr<ModList> jar_mod_list;
+ std::shared_ptr<ModList> core_mod_list;
+ std::shared_ptr<ModList> loader_mod_list;
+ std::shared_ptr<ModList> texture_pack_list;
+
protected
slots:
virtual void jarModsChanged();