summaryrefslogtreecommitdiffstats
path: root/logic/OneSixFTBInstance.cpp
diff options
context:
space:
mode:
authorJan Dalheimer <jan@dalheimer.de>2014-02-20 17:06:32 +0100
committerJan Dalheimer <jan@dalheimer.de>2014-02-20 17:06:32 +0100
commit43881b9cdba95259395c8bf633b670c8a6fead9a (patch)
treef8cfab198d6ca3d04888e2bf453179ab7ee03499 /logic/OneSixFTBInstance.cpp
parent5cf599673db88b39100ffca78e10bbe5e10200d7 (diff)
downloadMultiMC-43881b9cdba95259395c8bf633b670c8a6fead9a.tar
MultiMC-43881b9cdba95259395c8bf633b670c8a6fead9a.tar.gz
MultiMC-43881b9cdba95259395c8bf633b670c8a6fead9a.tar.lz
MultiMC-43881b9cdba95259395c8bf633b670c8a6fead9a.tar.xz
MultiMC-43881b9cdba95259395c8bf633b670c8a6fead9a.zip
Use FTB's libraries/ and versions/ folders for non-copied instances
Diffstat (limited to 'logic/OneSixFTBInstance.cpp')
-rw-r--r--logic/OneSixFTBInstance.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/logic/OneSixFTBInstance.cpp b/logic/OneSixFTBInstance.cpp
index ca88142a..8f745f93 100644
--- a/logic/OneSixFTBInstance.cpp
+++ b/logic/OneSixFTBInstance.cpp
@@ -95,6 +95,15 @@ QString OneSixFTBInstance::id() const
return "FTB/" + BaseInstance::id();
}
+QDir OneSixFTBInstance::librariesPath() const
+{
+ return QDir(MMC->settings()->get("FTBRoot").toString() + "/libraries");
+}
+QDir OneSixFTBInstance::versionsPath() const
+{
+ return QDir(MMC->settings()->get("FTBRoot").toString() + "/versions");
+}
+
QString OneSixFTBInstance::getStatusbarDescription()
{
return "OneSix FTB: " + intendedVersionId();