fix endless loop, less strict 2mg detection.

git-svn-id: https://profuse.googlecode.com/svn/trunk@13 aa027e90-d47c-11dd-86d7-074df07e0730
This commit is contained in:
ksherlock 2009-01-06 21:59:42 +00:00
parent 1b6a7fab18
commit d1b16d9010

View File

@ -92,8 +92,7 @@ Disk *Disk::OpenFile(const char *file)
}
bool ok = false;
for(;;)
{
do {
DiskCopy42 dc;
@ -110,8 +109,9 @@ Disk *Disk::OpenFile(const char *file)
UniversalDiskImage udi;
if (udi.Load(buffer)
&& udi.version == 1
&& udi.image_format == UDI_FORMAT_PRODOS_ORDER)
//&& udi.version == 1
//&& udi.image_format == UDI_FORMAT_PRODOS_ORDER
)
{
blocks = udi.data_blocks;
@ -120,7 +120,7 @@ Disk *Disk::OpenFile(const char *file)
break;
}
}
} while (false);
if (!ok)
{