mirror of
https://github.com/ksherlock/profuse.git
synced 2024-10-31 17:04:27 +00:00
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:
parent
1b6a7fab18
commit
d1b16d9010
10
Disk.cpp
10
Disk.cpp
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user