mirror of
https://github.com/martravi/wiiqt.git
synced 2024-11-22 17:19:18 +01:00
* fix bug in nandBin class that added the "/" root item to the path being extracted to
This commit is contained in:
parent
b684889045
commit
598a3aa49e
@ -160,12 +160,16 @@ bool NandBin::ExtractDir( fst_t fst, QString parent )
|
|||||||
QByteArray ba( (char*)fst.filename, 0xc );
|
QByteArray ba( (char*)fst.filename, 0xc );
|
||||||
QString filename( ba );
|
QString filename( ba );
|
||||||
|
|
||||||
QFileInfo fi( parent + "/" + filename );
|
QFileInfo fi( parent );
|
||||||
if( filename != "/" && !fi.exists() && !QDir().mkpath( fi.absoluteFilePath() ) )
|
if( filename != "/" )
|
||||||
|
{
|
||||||
|
fi.setFile( parent + "/" + filename );
|
||||||
|
if( !fi.exists() && !QDir().mkpath( fi.absoluteFilePath() ) )
|
||||||
{
|
{
|
||||||
emit SendError( tr( "Can\'t create directory \"%1\"" ).arg( fi.absoluteFilePath() ) );
|
emit SendError( tr( "Can\'t create directory \"%1\"" ).arg( fi.absoluteFilePath() ) );
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if( fst.sub != 0xffff && !ExtractFST( fst.sub, fi.absoluteFilePath() ) )
|
if( fst.sub != 0xffff && !ExtractFST( fst.sub, fi.absoluteFilePath() ) )
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user