Diff for /np2/win9x/dialog/d_disk.cpp between versions 1.6 and 1.9

version 1.6, 2004/01/22 01:10:05 version 1.9, 2004/02/13 20:31:55
Line 20  static const char fddui_filter[] =       Line 20  static const char fddui_filter[] =      
                                         "Floppy disk images (*.XDF;*.HDM;*.DUP;*.2HD)\0"        \                                          "Floppy disk images (*.XDF;*.HDM;*.DUP;*.2HD)\0"        \
                                                                         "*.xdf;*.hdm;*.dup;*.2hd;*.tfd\0"       \                                                                          "*.xdf;*.hdm;*.dup;*.2hd;*.tfd\0"       \
                                         "All supported Files\0"                                                         \                                          "All supported Files\0"                                                         \
                                                                         "*.d88;*.88d;*.d98;*.98d;"                      \                                                                          "*.d88;*.88d;*.d98;*.98d;*.fdi;"        \
                                                                         "*.xdf;*.hdm;*.dup;*.2hd;*.tfd\0"       \                                                                          "*.xdf;*.hdm;*.dup;*.2hd;*.tfd\0"       \
                                         "All files (*.*)\0*.*\0";                                          "All files (*.*)\0*.*\0";
 static const FILESEL fddui = {fddui_title, str_d88, fddui_filter, 3};  static const FILESEL fddui = {fddui_title, str_d88, fddui_filter, 3};
   
 static const char sasiui_title[] = "Select SASI/IDE HDD image";  static const char sasiui_title[] = "Select SASI/IDE HDD image";
 static const char sasiui_filter[] =                                                                             \  static const char sasiui_filter[] =                                                                             \
                                         "T98 harddisk image files (*.THD)\0"                            \  
                                                                         "*.thd\0"                                                       \  
                                         "Anex86 harddisk image files (*.HDI)\0"                         \                                          "Anex86 harddisk image files (*.HDI)\0"                         \
                                                                         "*.hdi\0"                                                       \                                                                          "*.hdi\0"                                                       \
                                           "T98 harddisk image files (*.THD)\0"                            \
                                                                           "*.thd\0"                                                       \
                                           "T98-Next harddisk image files (*.NHD)\0"                       \
                                                                           "*.nhd\0"                                                       \
                                         "All supported Files\0"                                                         \                                          "All supported Files\0"                                                         \
                                                                         "*.thd;*.hdi\0";                                                                          "*.thd;*.nhd;*.hdi\0";
 static const FILESEL sasiui = {sasiui_title, str_thd, sasiui_filter, 3};  static const FILESEL sasiui = {sasiui_title, str_thd, sasiui_filter, 4};
   
 static const char scsiui_title[] = "Select SCSI HDD image";  static const char scsiui_title[] = "Select SCSI HDD image";
 static const char scsiui_filter[] =                                                                             \  static const char scsiui_filter[] =                                                                             \
Line 45  static const char newdisk_title[] = "Cre Line 47  static const char newdisk_title[] = "Cre
 static const char newdisk_filter[] =                                                                    \  static const char newdisk_filter[] =                                                                    \
                                         "D88 image files (*.D88;*.88D)\0"                                       \                                          "D88 image files (*.D88;*.88D)\0"                                       \
                                                                         "*.d88;*.88d\0"                                         \                                                                          "*.d88;*.88d\0"                                         \
                                         "T98 harddisk image files (*.THD)\0"                            \  
                                                                         "*.thd\0"                                                       \  
                                         "Anex86 harddisk image files (*.HDI)\0"                         \                                          "Anex86 harddisk image files (*.HDI)\0"                         \
                                                                         "*.hdi\0"                                                       \                                                                          "*.hdi\0"                                                       \
                                           "T98 harddisk image files (*.THD)\0"                            \
                                                                           "*.thd\0"                                                       \
                                           "T98-Next harddisk image files (*.NHD)\0"                       \
                                                                           "*.nhd\0"                                                       \
                                         "Virtual98 harddisk image files (*.HDD)\0"                      \                                          "Virtual98 harddisk image files (*.HDD)\0"                      \
                                                                         "*.hdd\0";                                                                          "*.hdd\0";
 static const FILESEL newdiskui = {newdisk_title, str_d88, newdisk_filter, 1};  static const FILESEL newdiskui = {newdisk_title, str_d88, newdisk_filter, 1};
Line 287  void dialog_newdisk(HWND hWnd) { Line 291  void dialog_newdisk(HWND hWnd) {
   
         char            path[MAX_PATH];          char            path[MAX_PATH];
         HINSTANCE       hinst;          HINSTANCE       hinst;
   const char              *ext;
   
         file_cpyname(path, fddfolder, sizeof(path));          file_cpyname(path, fddfolder, sizeof(path));
         file_cutname(path);          file_cutname(path);
Line 296  void dialog_newdisk(HWND hWnd) { Line 301  void dialog_newdisk(HWND hWnd) {
                 return;                  return;
         }          }
         hinst = (HINSTANCE)GetWindowLong(hWnd, GWL_HINSTANCE);          hinst = (HINSTANCE)GetWindowLong(hWnd, GWL_HINSTANCE);
         if (!file_cmpname(file_getext(path), str_thd)) {          ext = file_getext(path);
           if (!file_cmpname(ext, str_thd)) {
                 hddsize = 0;                  hddsize = 0;
                 hddminsize = 5;                  hddminsize = 5;
                 hddmaxsize = 256;                  hddmaxsize = 256;
Line 305  void dialog_newdisk(HWND hWnd) { Line 311  void dialog_newdisk(HWND hWnd) {
                         newdisk_thd(path, hddsize);                          newdisk_thd(path, hddsize);
                 }                  }
         }          }
         else if (!file_cmpname(file_getext(path), str_hdi)) {          else if (!file_cmpname(ext, str_nhd)) {
                   hddsize = 0;
                   hddminsize = 5;
                   hddmaxsize = 512;
                   if (DialogBox(hinst, MAKEINTRESOURCE(IDD_NEWHDDDISK),
                                                                           hWnd, (DLGPROC)NewHddDlgProc) == IDOK) {
                           newdisk_nhd(path, hddsize);
                   }
           }
           else if (!file_cmpname(ext, str_hdi)) {
                 hddsize = 7;                  hddsize = 7;
                 if (DialogBox(hinst, MAKEINTRESOURCE(IDD_NEWSASI),                  if (DialogBox(hinst, MAKEINTRESOURCE(IDD_NEWSASI),
                                                                         hWnd, (DLGPROC)NewSASIDlgProc) == IDOK) {                                                                          hWnd, (DLGPROC)NewSASIDlgProc) == IDOK) {
                         newdisk_hdi(path, hddsize);                          newdisk_hdi(path, hddsize);
                 }                  }
         }          }
         else if (!file_cmpname(file_getext(path), str_hdd)) {          else if (!file_cmpname(ext, str_hdd)) {
                 hddsize = 0;                  hddsize = 0;
                 hddminsize = 2;                  hddminsize = 2;
                 hddmaxsize = 512;                  hddmaxsize = 512;
Line 323  void dialog_newdisk(HWND hWnd) { Line 338  void dialog_newdisk(HWND hWnd) {
         }          }
         else {          else {
                 if (DialogBox(hinst,                  if (DialogBox(hinst,
                                 MAKEINTRESOURCE(np2cfg.usefd144?IDD_NEWDISK2:IDD_NEWDISK),                                  MAKEINTRESOURCE((np2cfg.usefd144)?IDD_NEWDISK2:IDD_NEWDISK),
                                                                         hWnd, (DLGPROC)NewdiskDlgProc) == IDOK) {                                                                          hWnd, (DLGPROC)NewdiskDlgProc) == IDOK) {
                         newdisk_fdd(path, makefdtype, disklabel);                          newdisk_fdd(path, makefdtype, disklabel);
                 }                  }

Removed from v.1.6  
changed lines
  Added in v.1.9


RetroPC.NET-CVS <cvs@retropc.net>