Previous 15994 Revisions Next

r7923 Wednesday 28th April, 2010 at 11:39:03 UTC by Firewave
[IMGTOOL] Disable setup of first two FAT sectors. Was duplicating the FAT partiion header and messed up images. Works fine in imgtool, but WinImage shows some garbage now
[src/mess/tools/imgtool/modules]fat.c

src/mess/tools/imgtool/modules/fat.c
r7922r7923
464464   //const char *title;
465465   const char *fat_bits_string;
466466   UINT8 header[FAT_SECLEN];
467#if 0
467468   UINT64 first_fat_entries;
469#endif
468470
469471   /* check for limits */
470472   if (block_count > U64(0xFFFFFFFFFFFF))
r7922r7923
574576         return err;
575577   }
576578
579   // FIXME: this causes a corrupt PC floppy image since it doubles the FAT partition header - works without it though
580#if 0
577581   /* set first two FAT entries */
578582   first_fat_entries = ((UINT64) media_descriptor) | 0xFFFFFF00;
579583   first_fat_entries &= (((UINT64) 1) << fat_bits) - 1;
r7922r7923
586590      if (err)
587591         return err;
588592   }
593#endif
589594
590595   return IMGTOOLERR_SUCCESS;
591596}

Previous 15994 Revisions Next


© 1998-2018 The MESS Team