When faced with a 140k image, let the file suffix .do, .po, .2mg take precedence before we go sniffing for a filesystem.

This commit is contained in:
2012-10-09 13:36:37 +00:00
parent d8ef6f1a70
commit 6526cf3e0b

View File

@ -262,6 +262,21 @@ public class Disk {
rc = 0; rc = 0;
} }
} }
if (rc == -1) {
/*
* Check filenames for something deterministic.
*/
if (isProdosOrder() || is2ImgOrder()) {
imageOrder = proDosOrder;
rc = 0;
} else if (isDosOrder()) {
imageOrder = dosOrder;
rc = 0;
} else if (isNibbleOrder()) {
imageOrder = new NibbleOrder(diskImageManager);
rc = 0;
}
}
if (rc == -1) { if (rc == -1) {
/* /*
* Ok, it's not one of those. Now, let's go back to DOS * Ok, it's not one of those. Now, let's go back to DOS