mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-07-02 11:26:59 +03:00
Fix FTB local libraries bug
This commit is contained in:
parent
e9c8ca02ba
commit
0f3d88cb14
3 changed files with 9 additions and 7 deletions
|
|
@ -148,22 +148,23 @@ QStringList OneSixLibrary::files()
|
|||
{
|
||||
QString cooked_storage = storage;
|
||||
cooked_storage.replace("${arch}", "32");
|
||||
retval.append(PathCombine("libraries", cooked_storage));
|
||||
retval.append(cooked_storage);
|
||||
cooked_storage = storage;
|
||||
cooked_storage.replace("${arch}", "64");
|
||||
retval.append(PathCombine("libraries", cooked_storage));
|
||||
retval.append(cooked_storage);
|
||||
}
|
||||
else
|
||||
retval.append(PathCombine("libraries", storage));
|
||||
retval.append(storage);
|
||||
return retval;
|
||||
}
|
||||
|
||||
bool OneSixLibrary::filesExist()
|
||||
bool OneSixLibrary::filesExist(const QDir &base)
|
||||
{
|
||||
auto libFiles = files();
|
||||
for(auto file: libFiles)
|
||||
{
|
||||
QFileInfo info(file);
|
||||
QFileInfo info(base, file);
|
||||
QLOG_WARN() << info.absoluteFilePath() << "doesn't exist";
|
||||
if (!info.exists())
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue