WIP: Nick's patch for .po and .hdv smaller than 800K

This commit is contained in:
tomcw 2021-05-05 21:34:22 +01:00
parent b15abd0ba9
commit f27db49bd9
2 changed files with 12 additions and 0 deletions

View File

@ -68,7 +68,11 @@ ImageError_e ImageOpen( const std::string & pszImageFilename,
if (pImageInfo->pImageType && pImageInfo->pImageType->GetType() == eImageHDV)
{
if (bExpectFloppy)
{
Err = eIMAGE_ERROR_UNSUPPORTED_HDV;
ImageClose(*ppImageInfo);
*ppImageInfo = NULL;
}
return Err;
}

View File

@ -1078,6 +1078,14 @@ LRESULT Win32Frame::WndProc(
ProcessButtonClick(BTN_RUN);
}
}
else if (Error == eIMAGE_ERROR_UNSUPPORTED_HDV)
{
if (HD_CardIsEnabled() && DoHardDiskInsert(HARDDISK_1, filename))
{
SetForegroundWindow(window);
ProcessButtonClick(BTN_RUN);
}
}
else
{
disk2Card.NotifyInvalidImage(iDrive, filename, Error);