mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-06-29 01:54:20 +03:00
accept libarchive warning result
this is the intended behavior to treat warnings as ok, because teoretically the file was extracted, even if the time of the file can't be set Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
parent
c64d871a28
commit
a6d6ff9926
2 changed files with 2 additions and 3 deletions
|
|
@ -154,13 +154,11 @@ void InstanceImportTask::processZipPack()
|
|||
qDebug() << "Flame:" << true;
|
||||
m_modpackType = ModpackType::Flame;
|
||||
stop = true;
|
||||
return true;
|
||||
} else if (QFileInfo fileInfo(fileName); fileInfo.fileName() == "instance.cfg") {
|
||||
qDebug() << "MultiMC:" << true;
|
||||
m_modpackType = ModpackType::MultiMC;
|
||||
root = cleanPath(fileInfo.path());
|
||||
stop = true;
|
||||
return true;
|
||||
}
|
||||
QCoreApplication::processEvents();
|
||||
return true;
|
||||
|
|
|
|||
|
|
@ -151,7 +151,7 @@ bool ArchiveReader::File::writeFile(archive* out, QString targetFileName, bool n
|
|||
auto r = archive_write_finish_entry(out);
|
||||
if (r < ARCHIVE_OK)
|
||||
qCritical() << "Failed to finish writing entry:" << archive_error_string(out);
|
||||
return (r > ARCHIVE_WARN);
|
||||
return (r >= ARCHIVE_WARN);
|
||||
}
|
||||
|
||||
bool ArchiveReader::parse(std::function<bool(File*, bool&)> doStuff)
|
||||
|
|
@ -180,6 +180,7 @@ bool ArchiveReader::parse(std::function<bool(File*, bool&)> doStuff)
|
|||
archive_read_close(a);
|
||||
return true;
|
||||
}
|
||||
|
||||
bool ArchiveReader::parse(std::function<bool(File*)> doStuff)
|
||||
{
|
||||
return parse([doStuff](File* f, bool&) { return doStuff(f); });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue