mirror of
https://github.com/AppleCommander/AppleCommander.git
synced 2024-06-11 10:29:33 +00:00
Iterate through sectors (not tracks) in getFiles().
This commit is contained in:
parent
93cc49e546
commit
31875ea60c
|
@ -139,7 +139,7 @@ public class DosFormatDisk extends FormattedDisk {
|
||||||
byte[] vtoc = readVtoc();
|
byte[] vtoc = readVtoc();
|
||||||
int track = AppleUtil.getUnsignedByte(vtoc[1]);
|
int track = AppleUtil.getUnsignedByte(vtoc[1]);
|
||||||
int sector = AppleUtil.getUnsignedByte(vtoc[2]);
|
int sector = AppleUtil.getUnsignedByte(vtoc[2]);
|
||||||
while (track != 0) { // iterate through all catalog sectors
|
while (sector != 0) { // bug fix: iterate through all catalog _sectors_
|
||||||
byte[] catalogSector = readSector(track, sector);
|
byte[] catalogSector = readSector(track, sector);
|
||||||
int offset = 0x0b;
|
int offset = 0x0b;
|
||||||
while (offset < 0xff) { // iterate through all entries
|
while (offset < 0xff) { // iterate through all entries
|
||||||
|
|
Loading…
Reference in New Issue
Block a user