From be53eb66f8a63730f4def5640db6205678b4e9d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Thu, 13 Apr 2017 09:28:25 +0200 Subject: NOISSUE implement mainJar support in OneSix format This allows customizing the main jar like any other library. --- api/logic/minecraft/MinecraftProfile.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'api/logic/minecraft/MinecraftProfile.h') diff --git a/api/logic/minecraft/MinecraftProfile.h b/api/logic/minecraft/MinecraftProfile.h index 5b1ea539..93a02197 100644 --- a/api/logic/minecraft/MinecraftProfile.h +++ b/api/logic/minecraft/MinecraftProfile.h @@ -101,6 +101,7 @@ public: /* application of profile variables from patches */ void applyTweakers(const QStringList &tweakers); void applyJarMods(const QList &jarMods); void applyLibrary(LibraryPtr library); + void applyMainJar(LibraryPtr jar); void applyProblemSeverity(ProblemSeverity severity); void applyMojangDownload(const QString & key, MojangDownloadInfo::Ptr download); @@ -116,8 +117,9 @@ public: /* getters for profile variables */ const QList & getJarMods() const; const QList & getLibraries() const; const QList & getNativeLibraries() const; - void getLibraryFiles(const QString & architecture, QStringList & jars, QStringList & nativeJars, const QString & overridePath) const; - QString getMainJarUrl() const; + const LibraryPtr getMainJar() const; + void getLibraryFiles(const QString & architecture, QStringList & jars, QStringList & nativeJars, const QString & overridePath, + const QString & tempPath) const; bool hasTrait(const QString & trait) const; ProblemSeverity getProblemSeverity() const; @@ -170,6 +172,9 @@ private: /* data */ /// the list of libraries QList m_libraries; + /// the main jar + LibraryPtr m_mainJar; + /// the list of libraries QList m_nativeLibraries; -- cgit v1.2.3