Diff for /np2/fdd/sxsi.c between versions 1.9 and 1.10

version 1.9, 2004/01/27 03:24:19 version 1.10, 2004/01/27 07:24:25
Line 128  const char *ext; Line 128  const char *ext;
                 size = 256;                  size = 256;
                 totals = cylinders * sectors * surfaces;                  totals = cylinders * sectors * surfaces;
         }          }
         else if ((!file_cmpname(ext, str_hdi)) && (!(drv & 0x20))) {  
                 HDIHDR hdi;                                             // ANEX86 HDD (SASI) thanx Mamiya  
                 if (file_read(fh, &hdi, sizeof(hdi)) != sizeof(hdi)) {  
                         goto sxsiope_err2;  
                 }  
                 headersize = LOADINTELDWORD(hdi.headersize);  
                 surfaces = LOADINTELDWORD(hdi.surfaces);  
                 cylinders = LOADINTELDWORD(hdi.cylinders);  
                 sectors = LOADINTELDWORD(hdi.sectors);  
                 size = LOADINTELDWORD(hdi.sectorsize);  
                 totals = cylinders * sectors * surfaces;  
         }  
         else if ((!file_cmpname(ext, str_nhd)) && (!(drv & 0x20))) {          else if ((!file_cmpname(ext, str_nhd)) && (!(drv & 0x20))) {
                 NHDHDR nhd;                                             // T98Next HDD (IDE)                  NHDHDR nhd;                                             // T98Next HDD (IDE)
                 if ((file_read(fh, &nhd, sizeof(nhd)) != sizeof(nhd)) ||                  if ((file_read(fh, &nhd, sizeof(nhd)) != sizeof(nhd)) ||
Line 153  const char *ext; Line 141  const char *ext;
                 size = LOADINTELWORD(nhd.sectorsize);                  size = LOADINTELWORD(nhd.sectorsize);
                 totals = cylinders * sectors * surfaces;                  totals = cylinders * sectors * surfaces;
         }          }
           else if ((!file_cmpname(ext, str_hdi)) && (!(drv & 0x20))) {
                   HDIHDR hdi;                                             // ANEX86 HDD (SASI) thanx Mamiya
                   if (file_read(fh, &hdi, sizeof(hdi)) != sizeof(hdi)) {
                           goto sxsiope_err2;
                   }
                   headersize = LOADINTELDWORD(hdi.headersize);
                   surfaces = LOADINTELDWORD(hdi.surfaces);
                   cylinders = LOADINTELDWORD(hdi.cylinders);
                   sectors = LOADINTELDWORD(hdi.sectors);
                   size = LOADINTELDWORD(hdi.sectorsize);
                   totals = cylinders * sectors * surfaces;
           }
         else if ((!file_cmpname(ext, str_hdd)) && (drv & 0x20)) {          else if ((!file_cmpname(ext, str_hdd)) && (drv & 0x20)) {
                 VHDHDR vhd;                                             // Virtual98 HDD (SCSI)                  VHDHDR vhd;                                             // Virtual98 HDD (SCSI)
                 if ((file_read(fh, &vhd, sizeof(vhd)) != sizeof(vhd)) ||                  if ((file_read(fh, &vhd, sizeof(vhd)) != sizeof(vhd)) ||
                         (memcmp(vhd.sig, sig_vhd, 5))) {                          (memcmp(vhd.sig, sig_vhd, 5))) {
                         goto sxsiope_err2;                          goto sxsiope_err2;
                 }                  }
                 headersize = 220;                  headersize = sizeof(vhd);
                 surfaces = vhd.surfaces;                  surfaces = vhd.surfaces;
                 cylinders = LOADINTELWORD(vhd.cylinders);                  cylinders = LOADINTELWORD(vhd.cylinders);
                 sectors = vhd.sectors;                  sectors = vhd.sectors;

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


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