mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-07-03 11:56:57 +03:00
NOISSUE read local libraries only from the local location
This removes the fallback to global `libraries` folder for `local` libraries.
This commit is contained in:
parent
8a7f1e405f
commit
17e09a292d
1 changed files with 1 additions and 7 deletions
|
|
@ -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();
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue