mirror of
https://github.com/martravi/wiiqt6.git
synced 2024-11-25 14:17:00 +01:00
* cleanup some useless text in punetwiin
git-svn-id: http://wiiqt.googlecode.com/svn/trunk@84 389f4c8b-5dfe-645f-db0e-df882bc27289
This commit is contained in:
parent
0576fafe79
commit
87bbdf54ec
@ -223,8 +223,6 @@ QTreeWidgetItem *ItemFromPath( const QString &path )
|
||||
item = FindItem( lookingFor, item );
|
||||
if( !item )
|
||||
{
|
||||
//if( verbose )
|
||||
// qWarning() << "ItemFromPath ->item not found" << path;
|
||||
return NULL;
|
||||
}
|
||||
slash = nextSlash + 1;
|
||||
@ -246,31 +244,6 @@ QString PathFromItem( QTreeWidgetItem *item )
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
quint16 MainWindow::CreateIfNeeded( const QString &path, quint32 uid, quint16 gid, quint8 attr, quint8 user_perm, quint8 group_perm, quint8 other_perm )
|
||||
{
|
||||
QTreeWidgetItem *item = ItemFromPath( path );
|
||||
if( !item )
|
||||
{
|
||||
quint16 ret = nand.CreateEntry( path, uid, gid, attr, user_perm, group_perm, other_perm );
|
||||
if( ret && UpdateTree() )
|
||||
return ret;
|
||||
return 0;
|
||||
}
|
||||
return item->text( 1 ).toInt();
|
||||
}
|
||||
#define NAND_FILE 1
|
||||
#define NAND_DIR 2
|
||||
#define NAND_READ 1
|
||||
#define NAND_WRITE 2
|
||||
#define NAND_RW ( NAND_READ | NAND_WRITE )
|
||||
|
||||
#define NAND_ATTR( type, user, group, other ) ( ( quint8 )( ( type & 3 ) | ( ( user & 3 ) << 6 ) | ( ( group & 3 ) << 4 ) | ( ( other & 3 ) << 2 ) ) )
|
||||
#define NAND_ATTR_TYPE( attr ) ( attr & 3 )
|
||||
#define NAND_ATTR_USER( attr ) ( ( attr >> 6 ) & 3 )
|
||||
#define NAND_ATTR_GROUP( attr ) ( ( attr >> 4 ) & 3 )
|
||||
#define NAND_ATTR_OTHER( attr ) ( ( attr >> 2 ) & 3 )
|
||||
*/
|
||||
void DumpItem( QTreeWidgetItem *item )
|
||||
{
|
||||
if( !item )
|
||||
@ -454,7 +427,6 @@ int main( int argc, char *argv[] )
|
||||
qDebug() << "destination nand formatted ok.";
|
||||
}
|
||||
|
||||
|
||||
//get the list of contents from the source nand
|
||||
SetUpTree();
|
||||
printf("\n");
|
||||
@ -472,10 +444,5 @@ int main( int argc, char *argv[] )
|
||||
Fail( "error writing metadata" );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user