From 6e80f03409054293bdbbcd0ce87b607a811016d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Sun, 2 Oct 2016 00:26:10 +0200 Subject: NOISSUE add instance-local library storage Any libraries stored in $instanceroot/libraries/ will override the libraries from MultiMC's global folders, as long as they are marked 'local' in the json patch. --- api/logic/minecraft/Library.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'api/logic/minecraft/Library.h') diff --git a/api/logic/minecraft/Library.h b/api/logic/minecraft/Library.h index fdce93f3..6369c537 100644 --- a/api/logic/minecraft/Library.h +++ b/api/logic/minecraft/Library.h @@ -18,6 +18,7 @@ #include "multimc_logic_export.h" class Library; +class MinecraftInstance; typedef std::shared_ptr LibraryPtr; @@ -99,7 +100,8 @@ public: /* methods */ m_repositoryURL = base_url; } - void getApplicableFiles(OpSys system, QStringList & jar, QStringList & native, QStringList & native32, QStringList & native64) const; + void getApplicableFiles(OpSys system, QStringList & jar, QStringList & native, + QStringList & native32, QStringList & native64, const QString & overridePath) const; void setAbsoluteUrl(const QString &absolute_url) { @@ -126,7 +128,8 @@ public: /* methods */ bool isActive() const; // Get a list of downloads for this library - QList getDownloads(OpSys system, class HttpMetaCache * cache, QStringList &failedFiles) const; + QList getDownloads(OpSys system, class HttpMetaCache * cache, + QStringList & failedFiles, const QString & overridePath) const; private: /* methods */ /// the default storage prefix used by MultiMC -- cgit v1.2.3