From a30a9559c749446165ec84e737fe85b44a462584 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Thu, 18 Dec 2014 02:48:14 +0100 Subject: NOISSUE Fix jar mods for OnesSix --- logic/LegacyInstance.h | 30 +++++++++++++++++++++++++++--- 1 file changed, 27 insertions(+), 3 deletions(-) (limited to 'logic/LegacyInstance.h') 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 jar_mod_list; + std::shared_ptr core_mod_list; + std::shared_ptr loader_mod_list; + std::shared_ptr texture_pack_list; + protected slots: virtual void jarModsChanged(); -- cgit v1.2.3