Fixed a tiny oversight in buildFileTable() when using a 320Kb diskette formatted by DOS 1.10

This commit is contained in:
Jeff 2016-10-28 09:46:29 -07:00 committed by Jeff Parsons
commit 64845d782f
9 changed files with 282 additions and 280 deletions

View file

@ -1481,6 +1481,8 @@ Disk.prototype.buildFileTable = function()
else if (cbDisk == 320 * 1024 && this.getClusterEntry(dir, 0, 0) == DiskAPI.FAT.MEDIA_320KB) {
dir.lbaTotal = 640;
dir.nEntries = 112;
this.assert(this.nHeads == 2);
dir.nClusterSecs++; // 320Kb disks use 2 sectors/cluster
fValid = true;
}
else {