diff options
author | Petr Mrázek <peterix@gmail.com> | 2017-04-13 09:28:25 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2017-04-13 09:28:25 +0200 |
commit | be53eb66f8a63730f4def5640db6205678b4e9d8 (patch) | |
tree | bd5bdef96985312b6687b40f8835336bb3f56bb3 /api/logic/minecraft/MinecraftProfile.h | |
parent | db7357d008ae1f4ac0599b7e410ab666dbea5805 (diff) | |
download | PrismLauncher-be53eb66f8a63730f4def5640db6205678b4e9d8.tar.gz PrismLauncher-be53eb66f8a63730f4def5640db6205678b4e9d8.tar.bz2 PrismLauncher-be53eb66f8a63730f4def5640db6205678b4e9d8.zip |
NOISSUE implement mainJar support in OneSix format
This allows customizing the main jar like any other library.
Diffstat (limited to 'api/logic/minecraft/MinecraftProfile.h')
-rw-r--r-- | api/logic/minecraft/MinecraftProfile.h | 9 |
1 files changed, 7 insertions, 2 deletions
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<JarmodPtr> &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<JarmodPtr> & getJarMods() const; const QList<LibraryPtr> & getLibraries() const; const QList<LibraryPtr> & 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<LibraryPtr> m_libraries; + /// the main jar + LibraryPtr m_mainJar; + /// the list of libraries QList<LibraryPtr> m_nativeLibraries; |