VICE flip lists (ie.VFL files) work like .LST files.

This commit is contained in:
Stephen White 2019-07-01 21:16:08 +10:00
parent 50a590ee84
commit 124628012f

View file

@ -1161,7 +1161,7 @@ DiskImage::DiskType DiskImage::GetDiskImageTypeViaExtention(const char* diskImag
return NBZ; return NBZ;
else if (toupper((char)ext[1]) == 'D' && ext[2] == '6' && ext[3] == '4') else if (toupper((char)ext[1]) == 'D' && ext[2] == '6' && ext[3] == '4')
return D64; return D64;
else if (toupper((char)ext[1]) == 'L' && toupper((char)ext[2]) == 'S' && toupper((char)ext[3]) == 'T') else if (IsLSTExtention(diskImageName))
return LST; return LST;
else if (toupper((char)ext[1]) == 'D' && ext[2] == '8' && ext[3] == '1') else if (toupper((char)ext[1]) == 'D' && ext[2] == '8' && ext[3] == '1')
return D81; return D81;
@ -1202,7 +1202,14 @@ bool DiskImage::IsLSTExtention(const char* diskImageName)
{ {
char* ext = strrchr((char*)diskImageName, '.'); char* ext = strrchr((char*)diskImageName, '.');
if (ext && toupper((char)ext[1]) == 'L' && toupper((char)ext[2]) == 'S' && toupper((char)ext[3]) == 'T') if (ext &&
(
(toupper((char)ext[1]) == 'L' && toupper((char)ext[2]) == 'S' && toupper((char)ext[3]) == 'T')
||
(toupper((char)ext[1]) == 'V' && toupper((char)ext[2]) == 'F' && toupper((char)ext[3]) == 'L')
)
)
return true; return true;
return false; return false;
} }