mirror of
https://github.com/AppleCommander/AppleCommander.git
synced 2026-04-25 20:18:05 +00:00
Found some disks that "hide" the catalog by pointing at T17,S0 - so the recognition allows the assumption that this is T17,S15 in reality.
This commit is contained in:
+5
@@ -149,6 +149,11 @@ public class DosFormatDisk extends FormattedDisk {
|
||||
byte[] vtoc = readVtoc();
|
||||
int track = AppleUtil.getUnsignedByte(vtoc[1]);
|
||||
int sector = AppleUtil.getUnsignedByte(vtoc[2]);
|
||||
int sectorsPerTrack = AppleUtil.getUnsignedByte(vtoc[0x35]);
|
||||
if (sector == 0 && track != 0) {
|
||||
// Some folks "hid" the catalog by setting the pointer to T17,S0 - try and adjust
|
||||
sector = sectorsPerTrack-1;
|
||||
}
|
||||
final Set<DosSectorAddress> visits = new HashSet<>();
|
||||
while (sector != 0) { // bug fix: iterate through all catalog _sectors_
|
||||
|
||||
|
||||
Reference in New Issue
Block a user