* nandExtract:: add svn identification stuff

git-svn-id: http://wiiqt.googlecode.com/svn/trunk@105 389f4c8b-5dfe-645f-db0e-df882bc27289
This commit is contained in:
giantpune 2011-05-31 03:53:03 +00:00
parent 06da4707a6
commit b17507e0e9
2 changed files with 52 additions and 40 deletions

View File

@ -28,3 +28,13 @@ FORMS += nandwindow.ui \
RESOURCES += \ RESOURCES += \
rc.qrc rc.qrc
# create new svnrev.h
unix {
system( chmod 755 ../tools/makesvnrev.sh )
system( ../tools/makesvnrev.sh )
}
win32 {
system( "..\\tools\\SubWCRev.exe" "." "..\\tools\\svnrev_template.h" ".\\svnrev.h" )
}

View File

@ -1,4 +1,5 @@
#include "nandwindow.h" #include "nandwindow.h"
#include "svnrev.h"
#include "ui_nandwindow.h" #include "ui_nandwindow.h"
#include "boot2infodialog.h" #include "boot2infodialog.h"
#include "../WiiQt/tools.h" #include "../WiiQt/tools.h"
@ -7,6 +8,7 @@ NandWindow::NandWindow( QWidget *parent ) : QMainWindow( parent ), ui( new Ui::N
{ {
ui->setupUi( this ); ui->setupUi( this );
ui->mainToolBar->setVisible( false ); ui->mainToolBar->setVisible( false );
this->setWindowTitle( "NAND Extract r" + CleanSvnStr( SVN_REV_STR ) );
//setup the block map //setup the block map
SetUpBlockMap(); SetUpBlockMap();