summaryrefslogtreecommitdiffstats
path: root/api
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2018-04-07 22:33:26 +0200
committerPetr Mrázek <peterix@gmail.com>2018-04-07 22:33:26 +0200
commit67cef79d81222e599f914ced7b0e981c6630617d (patch)
tree5a30aa99ca4ed24c74c286111d5740af107683be /api
parent7e1c5d439a2ef6ce1346a3581776f58508a22afe (diff)
downloadMultiMC-67cef79d81222e599f914ced7b0e981c6630617d.tar
MultiMC-67cef79d81222e599f914ced7b0e981c6630617d.tar.gz
MultiMC-67cef79d81222e599f914ced7b0e981c6630617d.tar.lz
MultiMC-67cef79d81222e599f914ced7b0e981c6630617d.tar.xz
MultiMC-67cef79d81222e599f914ced7b0e981c6630617d.zip
NOISSUE add logging to zip subfolder extraction
Diffstat (limited to 'api')
-rw-r--r--api/logic/MMCZip.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/api/logic/MMCZip.cpp b/api/logic/MMCZip.cpp
index e0c64877..1e7ad51d 100644
--- a/api/logic/MMCZip.cpp
+++ b/api/logic/MMCZip.cpp
@@ -212,8 +212,10 @@ QStringList MMCZip::extractSubDir(QuaZip *zip, const QString & subdir, const QSt
{
QDir directory(target);
QStringList extracted;
+ qDebug() << "Extracting subdir" << subdir << "from" << zip->getZipName() << "to" << target;
if (!zip->goToFirstFile())
{
+ qWarning() << "Failed to seek to first file in zip";
return QStringList();
}
do
@@ -231,10 +233,12 @@ QStringList MMCZip::extractSubDir(QuaZip *zip, const QString & subdir, const QSt
}
if (!JlCompress::extractFile(zip, "", absFilePath))
{
+ qWarning() << "Failed to extract file" << name << "to" << absFilePath;
JlCompress::removeFile(extracted);
return QStringList();
}
extracted.append(absFilePath);
+ qDebug() << "Extracted file" << name;
} while (zip->goToNextFile());
return extracted;
}