2010-12-21 21:01:39 +01:00
|
|
|
#ifndef NEWNANDBIN_H
|
|
|
|
#define NEWNANDBIN_H
|
|
|
|
|
|
|
|
#include "../WiiQt/includes.h"
|
|
|
|
#include "../WiiQt/nandbin.h"
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class NewNandBin;
|
|
|
|
}
|
|
|
|
|
|
|
|
class NewNandBin : public QDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2011-05-28 08:05:34 +02:00
|
|
|
explicit NewNandBin( QWidget *parent = 0, const QList<quint16> &badBlocks = QList<quint16>() );
|
2010-12-21 21:01:39 +01:00
|
|
|
~NewNandBin();
|
|
|
|
|
2011-05-28 08:05:34 +02:00
|
|
|
static QString GetNewNandPath( QWidget *parent = 0, const QList<quint16> &badBlocks = QList<quint16>() );
|
2010-12-21 21:01:39 +01:00
|
|
|
|
|
|
|
private:
|
|
|
|
Ui::NewNandBin *ui;
|
|
|
|
QList<quint16> BadBlocks();
|
|
|
|
|
|
|
|
NandBin nand;
|
|
|
|
|
|
|
|
QString ret;
|
2010-12-22 01:25:08 +01:00
|
|
|
QString dir;
|
2010-12-21 21:01:39 +01:00
|
|
|
|
2011-01-14 18:48:38 +01:00
|
|
|
QByteArray boots;
|
|
|
|
QByteArray keys;
|
2011-01-18 04:03:08 +01:00
|
|
|
QByteArray uidSys;
|
2011-01-14 18:48:38 +01:00
|
|
|
|
|
|
|
bool CreateDefaultEntries();
|
2011-05-28 08:05:34 +02:00
|
|
|
QByteArray GetCleanUid( QByteArray old );
|
2011-01-14 18:48:38 +01:00
|
|
|
|
2010-12-21 21:01:39 +01:00
|
|
|
private slots:
|
2011-01-14 18:48:38 +01:00
|
|
|
void on_pushButton_oldNand_clicked();
|
|
|
|
void on_pushButton_badBlockFile_clicked();
|
2010-12-21 21:01:39 +01:00
|
|
|
void on_buttonBox_accepted();
|
|
|
|
void on_pushButton_bb_rm_clicked();
|
|
|
|
void on_pushButton_bb_add_clicked();
|
|
|
|
void on_pushButton_dest_clicked();
|
|
|
|
void on_pushButton_boot_clicked();
|
|
|
|
void on_pushButton_keys_clicked();
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // NEWNANDBIN_H
|