summaryrefslogtreecommitdiffstats
path: root/api/logic
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2018-11-11 23:50:36 +0100
committerPetr Mrázek <peterix@gmail.com>2018-11-11 23:50:36 +0100
commit17e09a292dbf864f7a618d6cc446331aeb480a15 (patch)
tree8e2b5c81c7fa1323388774e2b2df12ffe07b020d /api/logic
parent8a7f1e405f0ac57adcff455d5ca00a5f08f10868 (diff)
downloadMultiMC-17e09a292dbf864f7a618d6cc446331aeb480a15.tar
MultiMC-17e09a292dbf864f7a618d6cc446331aeb480a15.tar.gz
MultiMC-17e09a292dbf864f7a618d6cc446331aeb480a15.tar.lz
MultiMC-17e09a292dbf864f7a618d6cc446331aeb480a15.tar.xz
MultiMC-17e09a292dbf864f7a618d6cc446331aeb480a15.zip
NOISSUE read local libraries only from the local location
This removes the fallback to global `libraries` folder for `local` libraries.
Diffstat (limited to 'api/logic')
-rw-r--r--api/logic/minecraft/Library.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/api/logic/minecraft/Library.cpp b/api/logic/minecraft/Library.cpp
index 1cd6abb5..4c032ef3 100644
--- a/api/logic/minecraft/Library.cpp
+++ b/api/logic/minecraft/Library.cpp
@@ -18,13 +18,7 @@ void Library::getApplicableFiles(OpSys system, QStringList& jar, QStringList& na
if(local && !overridePath.isEmpty())
{
QString fileName = out.fileName();
- auto fullPath = FS::PathCombine(overridePath, fileName);
- qDebug() << fullPath;
- QFileInfo fileinfo(fullPath);
- if(fileinfo.exists())
- {
- return fileinfo.absoluteFilePath();
- }
+ return QFileInfo(FS::PathCombine(overridePath, fileName)).absoluteFilePath();
}
return out.absoluteFilePath();
};