diff options
Diffstat (limited to 'api')
-rw-r--r-- | api/logic/MMCZip.cpp | 4 |
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; } |