Permalink
Browse files

NOISSUE read local libraries only from the local location

This removes the fallback to global `libraries` folder for `local` libraries.
  • Loading branch information...
peterix committed Nov 11, 2018
1 parent 8a7f1e4 commit 17e09a292dbf864f7a618d6cc446331aeb480a15
Showing with 1 addition and 7 deletions.
  1. +1 −7 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();
};

0 comments on commit 17e09a2

Please sign in to comment.