Diff for /np2/fdd/newdisk.c between versions 1.5 and 1.6

version 1.5, 2004/01/26 14:49:14 version 1.6, 2004/01/27 07:24:25
Line 76  void newdisk_thd(const char *fname, UINT Line 76  void newdisk_thd(const char *fname, UINT
         }          }
 }  }
   
   void newdisk_nhd(const char *fname, UINT hddsize) {
   
           FILEH   fh;
           NHDHDR  nhd;
           UINT    tmp;
   
           if ((fname == NULL) || (hddsize < 5) || (hddsize > 512)) {
                   return;
           }
           fh = file_create(fname);
           if (fh != FILEH_INVALID) {
                   ZeroMemory(&nhd, sizeof(nhd));
                   CopyMemory(&nhd.sig, sig_nhd, 15);
                   STOREINTELDWORD(nhd.headersize, sizeof(nhd));
                   tmp = hddsize * 16;
                   STOREINTELDWORD(nhd.cylinders, tmp);
                   STOREINTELWORD(nhd.surfaces, 8);
                   STOREINTELWORD(nhd.sectors, 32);
                   STOREINTELWORD(nhd.sectorsize, 256);
                   file_write(fh, &nhd, sizeof(nhd));
                   writehddipl(fh, 256);
                   file_close(fh);
           }
   }
   
 // hddtype = 0:5MB / 1:10MB / 2:15MB / 3:20MB / 5:30MB / 6:40MB  // hddtype = 0:5MB / 1:10MB / 2:15MB / 3:20MB / 5:30MB / 6:40MB
 void newdisk_hdi(const char *fname, UINT hddtype) {  void newdisk_hdi(const char *fname, UINT hddtype) {
   

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


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