Diff for /np2/embed/menu/filesel.c between versions 1.2 and 1.5

version 1.2, 2004/01/10 20:15:43 version 1.5, 2004/01/27 10:55:47
Line 208  static void dlgsetlist(void) { Line 208  static void dlgsetlist(void) {
                 do {                  do {
                         append = FALSE;                          append = FALSE;
                         if (fli.attr & 0x10) {                          if (fli.attr & 0x10) {
 #if defined(WIN32) && !defined(_WIN32_WCE)  
                                 if ((file_cmpname(fli.path, ".")) &&  
                                         (file_cmpname(fli.path, ".."))) {  
                                         append = TRUE;  
                                 }  
 #else  
                                 append = TRUE;                                  append = TRUE;
 #endif  
                         }                          }
                         else if (!(fli.attr & 0x08)) {                          else if (!(fli.attr & 0x08)) {
                                 append = checkext(fli.path, filesel.ext);                                  append = checkext(fli.path, filesel.ext);
Line 386  const char *title; Line 379  const char *title;
   
 // ----  // ----
   
 static const char diskfilter[] = "All supported Files";  static const char diskfilter[] = "All supported files";
 static const char fddtitle[] = "Select floppy image";  static const char fddtitle[] = "Select floppy image";
 static const char fddext[] = "d88\088d\0d98\098d\0xdf\0hdm\0dup\02hd\0tfd\0";  static const char fddext[] = "d88\088d\0d98\098d\0fdi\0" \
                                                                   "xdf\0hdm\0dup\02hd\0tfd\0";
 static const char hddtitle[] = "Select HDD image";  static const char hddtitle[] = "Select HDD image";
 static const char hddext[] = "thd\0hdi\0";  static const char sasiext[] = "thd\0nhd\0hdi\0";
   static const char scsiext[] = "hdd\0";
   
 static const FSELPRM fddprm = {fddtitle, diskfilter, fddext};  static const FSELPRM fddprm = {fddtitle, diskfilter, fddext};
 static const FSELPRM hddprm = {hddtitle, diskfilter, hddext};  static const FSELPRM sasiprm = {hddtitle, diskfilter, sasiext};
   static const FSELPRM scsiprm = {hddtitle, diskfilter, scsiext};
   
 void filesel_fdd(BYTE drv) {  void filesel_fdd(REG8 drv) {
   
         char    path[MAX_PATH];          char    path[MAX_PATH];
   
Line 406  void filesel_fdd(BYTE drv) { Line 402  void filesel_fdd(BYTE drv) {
         }          }
 }  }
   
 void filesel_sasi(BYTE drv) {  void filesel_hdd(REG8 drv) {
   
         char    path[MAX_PATH];  
   
         if (drv < 2) {          UINT            num;
                 if (selectfile(&hddprm, path, sizeof(path), np2cfg.hddfile[drv])) {          char            path[MAX_PATH];
                         diskdrv_sethdd(drv, path);          char            *p;
   const FSELPRM   *prm;
   
           num = drv & 0x0f;
           if (!(drv & 0x20)) {            // SASI/IDE
                   if (num >= 2) {
                           return;
                   }
                   p = np2cfg.sasihdd[num];
                   prm = &sasiprm;
           }
           else {                                          // SCSI
                   if (num >= 4) {
                           return;
                 }                  }
                   p = np2cfg.scsihdd[num];
                   prm = &scsiprm;
           }
           if (selectfile(prm, path, sizeof(path), p)) {
                   diskdrv_sethdd(drv, path);
         }          }
 }  }
   

Removed from v.1.2  
changed lines
  Added in v.1.5


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