From 17e09a292dbf864f7a618d6cc446331aeb480a15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Sun, 11 Nov 2018 23:50:36 +0100 Subject: [PATCH] NOISSUE read local libraries only from the local location This removes the fallback to global `libraries` folder for `local` libraries. --- api/logic/minecraft/Library.cpp | 8 +------- 1 file changed, 1 insertion(+), 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(); };