mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -04:00
clean up debug statements
This commit is contained in:
parent
f6ffcabe3f
commit
a0346de5c2
@ -14,7 +14,6 @@ extern"C" {
|
|||||||
CompressedArchive::CompressedArchive(const QString & filePath, QObject *parent) :
|
CompressedArchive::CompressedArchive(const QString & filePath, QObject *parent) :
|
||||||
QObject(parent),valid(false),tools(true),numFiles(0),ar(NULL),stream(NULL)
|
QObject(parent),valid(false),tools(true),numFiles(0),ar(NULL),stream(NULL)
|
||||||
{
|
{
|
||||||
qDebug() << filePath;
|
|
||||||
stream = ar_open_file(filePath.toStdString().c_str());
|
stream = ar_open_file(filePath.toStdString().c_str());
|
||||||
//try to open archive
|
//try to open archive
|
||||||
ar = ar_open_rar_archive(stream);
|
ar = ar_open_rar_archive(stream);
|
||||||
@ -25,7 +24,7 @@ CompressedArchive::CompressedArchive(const QString & filePath, QObject *parent)
|
|||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
//initial parse
|
||||||
while (ar_parse_entry(ar))
|
while (ar_parse_entry(ar))
|
||||||
{
|
{
|
||||||
numFiles++;
|
numFiles++;
|
||||||
@ -37,8 +36,6 @@ CompressedArchive::CompressedArchive(const QString & filePath, QObject *parent)
|
|||||||
valid = true;
|
valid = true;
|
||||||
tools = true;
|
tools = true;
|
||||||
}
|
}
|
||||||
qDebug() << fileNames;
|
|
||||||
qDebug() << numFiles;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
CompressedArchive::~CompressedArchive()
|
CompressedArchive::~CompressedArchive()
|
||||||
@ -47,11 +44,6 @@ CompressedArchive::~CompressedArchive()
|
|||||||
ar_close(stream);
|
ar_close(stream);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CompressedArchive::loadFunctions()
|
|
||||||
{
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
QList<QString> CompressedArchive::getFileNames()
|
QList<QString> CompressedArchive::getFileNames()
|
||||||
{
|
{
|
||||||
return fileNames;
|
return fileNames;
|
||||||
|
@ -25,7 +25,6 @@ public slots:
|
|||||||
bool toolsLoaded();
|
bool toolsLoaded();
|
||||||
private:
|
private:
|
||||||
|
|
||||||
bool loadFunctions();
|
|
||||||
bool tools;
|
bool tools;
|
||||||
bool valid;
|
bool valid;
|
||||||
QList<QString> fileNames;
|
QList<QString> fileNames;
|
||||||
|
@ -6,4 +6,5 @@ HEADERS += $$PWD/extract_delegate.h \
|
|||||||
|
|
||||||
SOURCES += $$PWD/compressed_archive.cpp \
|
SOURCES += $$PWD/compressed_archive.cpp \
|
||||||
|
|
||||||
LIBS+=-lunarr
|
#for system libunarr.so
|
||||||
|
#LIBS+=-lunarr
|
Loading…
x
Reference in New Issue
Block a user