diff options
author | Petr Mrázek <peterix@gmail.com> | 2017-04-17 22:51:30 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2017-04-17 22:51:30 +0200 |
commit | c4c8e99681e14e5d0e82a13cb0631107dedf96ff (patch) | |
tree | a40279027b7530b5b8ddf0bbc286d0a33dc18951 /api/logic/minecraft/MinecraftProfile.h | |
parent | fc28aacdea3e7331b0f5f4436e0dac2fd361c390 (diff) | |
download | PrismLauncher-c4c8e99681e14e5d0e82a13cb0631107dedf96ff.tar.gz PrismLauncher-c4c8e99681e14e5d0e82a13cb0631107dedf96ff.tar.bz2 PrismLauncher-c4c8e99681e14e5d0e82a13cb0631107dedf96ff.zip |
NOISSUE jar mods as libraries, fix for customizing net.minecraft
Diffstat (limited to 'api/logic/minecraft/MinecraftProfile.h')
-rw-r--r-- | api/logic/minecraft/MinecraftProfile.h | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/api/logic/minecraft/MinecraftProfile.h b/api/logic/minecraft/MinecraftProfile.h index 93a02197..6e72afa1 100644 --- a/api/logic/minecraft/MinecraftProfile.h +++ b/api/logic/minecraft/MinecraftProfile.h @@ -23,7 +23,6 @@ #include "Library.h" #include "ProfilePatch.h" -#include "JarMod.h" #include "BaseVersion.h" #include "MojangDownloadInfo.h" @@ -99,11 +98,10 @@ public: /* application of profile variables from patches */ void applyMinecraftAssets(MojangAssetIndexInfo::Ptr assets); void applyTraits(const QSet<QString> &traits); void applyTweakers(const QStringList &tweakers); - void applyJarMods(const QList<JarmodPtr> &jarMods); + void applyJarMods(const QList<LibraryPtr> &jarMods); void applyLibrary(LibraryPtr library); void applyMainJar(LibraryPtr jar); void applyProblemSeverity(ProblemSeverity severity); - void applyMojangDownload(const QString & key, MojangDownloadInfo::Ptr download); public: /* getters for profile variables */ QString getMinecraftVersion() const; @@ -114,7 +112,7 @@ public: /* getters for profile variables */ QString getMinecraftArguments() const; const QSet<QString> & getTraits() const; const QStringList & getTweakers() const; - const QList<JarmodPtr> & getJarMods() const; + const QList<LibraryPtr> & getJarMods() const; const QList<LibraryPtr> & getLibraries() const; const QList<LibraryPtr> & getNativeLibraries() const; const LibraryPtr getMainJar() const; @@ -149,9 +147,6 @@ private: /* data */ /// Assets type - "legacy" or a version ID MojangAssetIndexInfo::Ptr m_minecraftAssets; - // Mojang: list of 'downloads' - client jar, server jar, windows server exe, maybe more. - QMap <QString, std::shared_ptr<MojangDownloadInfo>> mojangDownloads; - /** * arguments that should be used for launching minecraft * @@ -182,7 +177,7 @@ private: /* data */ QSet<QString> m_traits; /// A list of jar mods. version files can add those. - QList<JarmodPtr> m_jarMods; + QList<LibraryPtr> m_jarMods; ProblemSeverity m_problemSeverity = ProblemSeverity::None; |