diff options
author | Petr Mrázek <peterix@gmail.com> | 2020-03-27 02:23:15 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2020-03-27 02:23:15 +0100 |
commit | 0281845fc840fae131856b2fda47be9b8ca1affc (patch) | |
tree | 177e1cadd39027e05b53c7ad115f8dfd7d4550ad /api/logic/minecraft/VersionFile.cpp | |
parent | e6cc65cf69b3fb2c1fa08e6768669f826048af20 (diff) | |
download | MultiMC-0281845fc840fae131856b2fda47be9b8ca1affc.tar MultiMC-0281845fc840fae131856b2fda47be9b8ca1affc.tar.gz MultiMC-0281845fc840fae131856b2fda47be9b8ca1affc.tar.lz MultiMC-0281845fc840fae131856b2fda47be9b8ca1affc.tar.xz MultiMC-0281845fc840fae131856b2fda47be9b8ca1affc.zip |
GH-2544 allow adding files to `libraries` without affecting classpath
This is done by adding library-like objects into the `mavenFiles`
list in version JSONs.
Diffstat (limited to 'api/logic/minecraft/VersionFile.cpp')
-rw-r--r-- | api/logic/minecraft/VersionFile.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/api/logic/minecraft/VersionFile.cpp b/api/logic/minecraft/VersionFile.cpp index cfb9e504..5bad57e9 100644 --- a/api/logic/minecraft/VersionFile.cpp +++ b/api/logic/minecraft/VersionFile.cpp @@ -41,6 +41,10 @@ void VersionFile::applyTo(LaunchProfile *profile) { profile->applyLibrary(library); } + for (auto mavenFile : mavenFiles) + { + profile->applyMavenFile(mavenFile); + } profile->applyProblemSeverity(getProblemSeverity()); } @@ -53,4 +57,4 @@ void VersionFile::applyTo(LaunchProfile *profile) throw MinecraftVersionMismatch(uid, dependsOnMinecraftVersion, theirVersion); } } -*/
\ No newline at end of file +*/ |