Hi Wolf,

On 05/02/2019 14:01, Wolfgang Lenerz via Ql-Users wrote:

int nbrOfSectorsInMap=firstSector.getShort(WinDrive.QWA_SCTM)&0xffff;
// that many sectors are supposed to be in the fat

int temp=nbrOfSectorsInMap/(firstSector.getShort(WinDrive.QWA_SCTG)&0xffff); if (nbrOfSectorsInMap % (firstSector.getShort(WinDrive.QWA_SCTG)&0xffff) !=0)
   temp++;   // these are the number of clusters needed to hold the map

if (temp!=this.fatClusterChain.size())  (...)
// if they both agree, all is ok, I have a valid drive map

That's very useful indeed, thanks. With a bit of luck, I might be able to get proper qxl.win files created soon. :)


Cheers,
Norm.

--
Norman Dunbar
Dunbar IT Consultants Ltd

Registered address:
27a Lidget Hill
Pudsey
West Yorkshire
United Kingdom
LS28 7LG

Company Number: 05132767
_______________________________________________
QL-Users Mailing List

Reply via email to