diff options
author | Petr Mrázek <petr@mojang.com> | 2018-11-26 09:57:51 +0100 |
---|---|---|
committer | Petr Mrázek <petr@mojang.com> | 2018-11-26 09:57:51 +0100 |
commit | 0ee915200b87d69ca1c27fdb756fcbf6c9913a2f (patch) | |
tree | 2c6fe767172129d9d5aa60cea8f3f96d26995239 /api/logic/minecraft/MinecraftInstance.cpp | |
parent | 9eb456336dc8bae2000f7d729d2d63c4a0906157 (diff) | |
download | MultiMC-0ee915200b87d69ca1c27fdb756fcbf6c9913a2f.tar MultiMC-0ee915200b87d69ca1c27fdb756fcbf6c9913a2f.tar.gz MultiMC-0ee915200b87d69ca1c27fdb756fcbf6c9913a2f.tar.lz MultiMC-0ee915200b87d69ca1c27fdb756fcbf6c9913a2f.tar.xz MultiMC-0ee915200b87d69ca1c27fdb756fcbf6c9913a2f.zip |
GH-2478 fix jarmods being detected as missing
Diffstat (limited to 'api/logic/minecraft/MinecraftInstance.cpp')
-rw-r--r-- | api/logic/minecraft/MinecraftInstance.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/api/logic/minecraft/MinecraftInstance.cpp b/api/logic/minecraft/MinecraftInstance.cpp index f649a744..fecb951a 100644 --- a/api/logic/minecraft/MinecraftInstance.cpp +++ b/api/logic/minecraft/MinecraftInstance.cpp @@ -169,6 +169,12 @@ QString MinecraftInstance::getLocalLibraryPath() const return libraries_dir.absolutePath(); } +QString MinecraftInstance::jarModsDir() const +{ + QDir jarmods_dir(FS::PathCombine(instanceRoot(), "jarmods/")); + return jarmods_dir.absolutePath(); +} + QString MinecraftInstance::loaderModsDir() const { return FS::PathCombine(gameRoot(), "mods"); @@ -199,11 +205,6 @@ QString MinecraftInstance::instanceConfigFolder() const return FS::PathCombine(gameRoot(), "config"); } -QString MinecraftInstance::jarModsDir() const -{ - return FS::PathCombine(instanceRoot(), "jarmods"); -} - QString MinecraftInstance::libDir() const { return FS::PathCombine(gameRoot(), "lib"); |