From 0760c2ffe38b9b9f4eb885dd1e190531253a5f20 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Mikko=20Kein=C3=A4nen?= Date: Sun, 17 Oct 2010 01:23:54 +0300 Subject: [PATCH] Cleaned up. --- src/emulauncher.cpp | 1 - src/utils/emuhelper.cpp | 5 ----- src/utils/unziphelper.cpp | 19 ------------------- 3 files changed, 25 deletions(-) diff --git a/src/emulauncher.cpp b/src/emulauncher.cpp index f334e60..ce6f731 100644 --- a/src/emulauncher.cpp +++ b/src/emulauncher.cpp @@ -21,7 +21,6 @@ #include #include #include -//#include "utils/OSDaB-Zip/unzip.h" #include "emulauncher.h" #include "db/dbmediatype.h" #include "db/dbplatform.h" diff --git a/src/utils/emuhelper.cpp b/src/utils/emuhelper.cpp index 9e6c331..f190c05 100644 --- a/src/utils/emuhelper.cpp +++ b/src/utils/emuhelper.cpp @@ -35,17 +35,12 @@ void EmuHelper::launch(const Executable * ex, const MediaImageContainer * mic) { // extract the media image container to tmp folder // (TODO: tmp folder configuration) - //UnZip unz; QString fp; fp.append(mic->getFilePath()->getName()); if (!fp.endsWith('/')) fp.append("/"); fp.append(mic->getName()); - //unz.openArchive(fp); - //int err = unz.extractAll("/tmp/"); // TODO: this must be set dynamically - //qDebug() << "extractAll to " << fp << " : " << err; - int ret = unzipHelper->extractAll(fp, "/tmp/"); if (ret) { diff --git a/src/utils/unziphelper.cpp b/src/utils/unziphelper.cpp index e58ed03..9a20b69 100644 --- a/src/utils/unziphelper.cpp +++ b/src/utils/unziphelper.cpp @@ -115,25 +115,6 @@ QList UnzipHelper::listContents(const QString filePath, const FileP fileList << effo; } - /*UnZip uz; - UnZip::ErrorCode ec = uz.openArchive(filePath); - if (ec != UnZip::Ok) - throw EmuFrontException(tr("Error while opening zip-file %1, error code %2").arg(filePath).arg(ec)); - - QList list = uz.entryList(); - foreach(UnZip::ZipEntry entry, list) - { - qDebug() << "Zip entry " << entry.filename; - if (isSupportedFile(entry.filename, sup->getSupportedFileTypeExtensions())) - { - QString checksum = QString("%1").arg(entry.crc32, 0, 16); - qDebug() << "Checksum " << checksum; - MediaImage *effo = new MediaImage(entry.filename, - checksum, entry.uncompressedSize); - fileList << effo; - } - }*/ - qDebug() << "File list has " << fileList.size() << " entries."; return fileList; -- 1.7.9.5