mirror of
https://github.com/badvision/jace.git
synced 2024-11-24 15:30:51 +00:00
#44: Assume extra messages only needed when DEBUG flag is set
This commit is contained in:
parent
455151abf7
commit
88cd03a9e6
@ -155,15 +155,21 @@ public class FloppyDisk {
|
||||
|
||||
if (sectorOrder == SectorOrder.UNKNOWN) {
|
||||
if (isProdosVolumeBlock(nibbles, 0x0400)) {
|
||||
if (DEBUG) {
|
||||
System.out.println("Prodos volume block found at 0x0400");
|
||||
}
|
||||
sectorOrder = SectorOrder.PRODOS;
|
||||
} else if (isProdosVolumeBlock(nibbles, 0x0B00)) {
|
||||
System.out.println("Prodos volume block found at 0x0A00");
|
||||
if (DEBUG) {
|
||||
System.out.println("Prodos volume block found at 0x0B00");
|
||||
}
|
||||
sectorOrder = SectorOrder.DOS;
|
||||
}
|
||||
}
|
||||
if (sectorOrder == SectorOrder.UNKNOWN) {
|
||||
if (DEBUG) {
|
||||
System.out.println("Assuming sector order based on file extension");
|
||||
}
|
||||
sectorOrder = assumedOrder;
|
||||
}
|
||||
System.out.println(null == sectorOrder ? "Sector order is null" : "Sector order is " + sectorOrder.name());
|
||||
|
Loading…
Reference in New Issue
Block a user