- /****************************************************************************
- ** Form interface generated from reading ui file '../WiiQt/settingtxtdialog.ui'
- **
- ** Created: lun giu 4 12:39:53 2012
- **
- ** WARNING! All changes made in this file will be lost!
- ****************************************************************************/
- #ifndef SETTINGTXTDIALOG_H
- #define SETTINGTXTDIALOG_H
- #include "includes.h"
- //this class creates a dialog used to create & edit a setting.txt for a wii nand filesystem
- // in most cases, the static function Edit() is what you want to use
- namespace Ui {
- class SettingTxtDialog;
- }
- enum
- {
- SETTING_TXT_JAP = 0,
- SETTING_TXT_USA,
- SETTING_TXT_PAL,
- SETTING_TXT_KOR,
- SETTING_TXT_UNK
- };
- class SettingTxtDialog : public QDialog
- {
- Q_OBJECT
- public:
- explicit SettingTxtDialog( QWidget *parent = 0, const QByteArray &old = QByteArray(), qint8 region = SETTING_TXT_UNK );
- ~SettingTxtDialog();
- //displays a dialog window with the given parent. if any data is given as old, it will try to populate the dialog with that
- // otherwise it will use the defaulte values
- // returns empty if the user clicked cancel, or a bytearray containing an encrypted setting.txt if they clicked ok
- // the data is ready for writing to a wii nand
- // if an empty byte array is given as old, a region can be specified to populate default values instaed
- static QByteArray Edit( QWidget *parent = 0, const QByteArray &old = QByteArray(), qint8 region = SETTING_TXT_UNK );
- static QByteArray LolCrypt( QByteArray ba );
- private:
- Ui::SettingTxtDialog *ui;
- QByteArray ret;
- private slots:
- void on_buttonBox_accepted();
- };
- #endif // SETTINGTXTDIALOG_H
- Hide details
- Change log
- r27 by giantpune on Dec 21, 2010 Diff
- * setting.txt dialog knows different
- regions
- * make the button for selecting the
- NUS_Cache path actually do something in
- the 2 programs that use NUS
- * default NUS_cache is up 2 directories in
- windoze
- * allow reading bad blocks from a txt file
- when creating a blank nand
- Go to:
- Older revisions
- r12 by giantpune on Dec 9, 2010 Diff
- All revisions of this file
- File info
- Size: 1388 bytes, 46 lines
- View raw file