Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 26th, 2012  |  syntax: None  |  size: 2.23 KB  |  hits: 17  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. /****************************************************************************
  2. ** Form interface generated from reading ui file '../WiiQt/settingtxtdialog.ui'
  3. **
  4. ** Created: lun giu 4 12:39:53 2012
  5. **
  6. ** WARNING! All changes made in this file will be lost!
  7. ****************************************************************************/
  8. #ifndef SETTINGTXTDIALOG_H
  9. #define SETTINGTXTDIALOG_H
  10.  
  11. #include "includes.h"
  12.  
  13. //this class creates a dialog used to create & edit a setting.txt for a wii nand filesystem
  14. // in most cases, the static function Edit() is what you want to use
  15. namespace Ui {
  16.     class SettingTxtDialog;
  17. }
  18. enum
  19. {
  20.     SETTING_TXT_JAP = 0,
  21.     SETTING_TXT_USA,
  22.     SETTING_TXT_PAL,
  23.     SETTING_TXT_KOR,
  24.     SETTING_TXT_UNK
  25. };
  26.  
  27. class SettingTxtDialog : public QDialog
  28. {
  29.     Q_OBJECT
  30.  
  31. public:
  32.     explicit SettingTxtDialog( QWidget *parent = 0, const QByteArray &old = QByteArray(), qint8 region = SETTING_TXT_UNK );
  33.     ~SettingTxtDialog();
  34.  
  35.     //displays a dialog window with the given parent.  if any data is given as old, it will try to populate the dialog with that
  36.     // otherwise it will use the defaulte values
  37.     // returns empty if the user clicked cancel, or a bytearray containing an encrypted setting.txt if they clicked ok
  38.     // the data is ready for writing to a wii nand
  39.     // if an empty byte array is given as old, a region can be specified to populate default values instaed
  40.     static QByteArray Edit( QWidget *parent = 0, const QByteArray &old = QByteArray(), qint8 region = SETTING_TXT_UNK );
  41.     static QByteArray LolCrypt( QByteArray ba );
  42.  
  43. private:
  44.     Ui::SettingTxtDialog *ui;
  45.     QByteArray ret;
  46.  
  47.  
  48.  
  49. private slots:
  50.     void on_buttonBox_accepted();
  51. };
  52.  
  53. #endif // SETTINGTXTDIALOG_H
  54.  
  55. Hide details
  56.  
  57. Change log
  58. r27 by giantpune on Dec 21, 2010   Diff
  59.  
  60. * setting.txt dialog knows different
  61. regions
  62. * make the button for selecting the
  63. NUS_Cache path actually do something in
  64. the 2 programs that use NUS
  65. * default NUS_cache is up 2 directories in
  66. windoze
  67. * allow reading bad blocks from a txt file
  68. when creating a blank nand
  69.  
  70. Go to:  
  71.  
  72. Older revisions
  73. r12 by giantpune on Dec 9, 2010   Diff
  74. All revisions of this file
  75.  
  76. File info
  77. Size: 1388 bytes, 46 lines
  78. View raw file