mirror of
https://github.com/kanjitalk755/macemu.git
synced 2024-12-25 02:29:49 +00:00
ignore disks on which you can't get size
This commit is contained in:
parent
16bb0823b8
commit
a3c2413f3b
@ -257,14 +257,15 @@ void DarwinAddFloppyPrefs(void)
|
||||
D(bug("Got size of %ld\n", size));
|
||||
if ( size < 800 * 1024 || size > 1440 * 1024 )
|
||||
{
|
||||
D(puts("Device does not appear to be 800k or 1440k\n"));
|
||||
D(puts("Device does not appear to be 800k or 1440k"));
|
||||
continue;
|
||||
}
|
||||
}
|
||||
else
|
||||
bug("Couldn't get kIOMediaSizeKey of device\n");
|
||||
|
||||
|
||||
else {
|
||||
D(puts("Couldn't get kIOMediaSizeKey of device"));
|
||||
continue; // if kIOMediaSizeKey is unavailable, we shouldn't use it anyway
|
||||
}
|
||||
|
||||
*bsdPath = '\0';
|
||||
if ( bsdPathAsCFString )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user