git-svn-id: http://wiiqt.googlecode.com/svn/trunk@76 389f4c8b-5dfe-645f-db0e-df882bc27289
This commit is contained in:
giantpune 2011-03-24 09:11:51 +00:00
parent bb4f9e1653
commit 13610f87ad

View File

@ -368,8 +368,8 @@ bool NandBin::ExtractFST( quint16 entry, const QString &path, bool singleFile )
bool NandBin::ExtractDir( fst_t fst, const QString &parent ) bool NandBin::ExtractDir( fst_t fst, const QString &parent )
{ {
//qDebug() << "NandBin::ExtractDir(" << parent << ")"; //qDebug() << "NandBin::ExtractDir(" << parent << ")";
QByteArray ba( (char*)fst.filename, 0xc ); //QByteArray ba( (char*)fst.filename, 0xc );
QString filename( ba ); QString filename = FstName( fst );
QFileInfo fi( parent ); QFileInfo fi( parent );
if( filename != "/" ) if( filename != "/" )
@ -389,8 +389,8 @@ bool NandBin::ExtractDir( fst_t fst, const QString &parent )
bool NandBin::ExtractFile( fst_t fst, const QString &parent ) bool NandBin::ExtractFile( fst_t fst, const QString &parent )
{ {
QByteArray ba( (char*)fst.filename, 0xc ); //QByteArray ba( (char*)fst.filename, 0xc );
QString filename( ba ); QString filename = FstName( fst );
QFileInfo fi( parent + "/" + filename ); QFileInfo fi( parent + "/" + filename );
qDebug() << "extract" << fi.absoluteFilePath(); qDebug() << "extract" << fi.absoluteFilePath();
emit SendText( tr( "Extracting \"%1\"" ).arg( fi.absoluteFilePath() ) ); emit SendText( tr( "Extracting \"%1\"" ).arg( fi.absoluteFilePath() ) );