mirror of
https://github.com/AppleWin/AppleWin.git
synced 2024-06-02 20:41:38 +00:00
WIP: Nick's patch for .po and .hdv smaller than 800K
This commit is contained in:
parent
b15abd0ba9
commit
f27db49bd9
|
@ -68,7 +68,11 @@ ImageError_e ImageOpen( const std::string & pszImageFilename,
|
||||||
if (pImageInfo->pImageType && pImageInfo->pImageType->GetType() == eImageHDV)
|
if (pImageInfo->pImageType && pImageInfo->pImageType->GetType() == eImageHDV)
|
||||||
{
|
{
|
||||||
if (bExpectFloppy)
|
if (bExpectFloppy)
|
||||||
|
{
|
||||||
Err = eIMAGE_ERROR_UNSUPPORTED_HDV;
|
Err = eIMAGE_ERROR_UNSUPPORTED_HDV;
|
||||||
|
ImageClose(*ppImageInfo);
|
||||||
|
*ppImageInfo = NULL;
|
||||||
|
}
|
||||||
return Err;
|
return Err;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1078,6 +1078,14 @@ LRESULT Win32Frame::WndProc(
|
||||||
ProcessButtonClick(BTN_RUN);
|
ProcessButtonClick(BTN_RUN);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if (Error == eIMAGE_ERROR_UNSUPPORTED_HDV)
|
||||||
|
{
|
||||||
|
if (HD_CardIsEnabled() && DoHardDiskInsert(HARDDISK_1, filename))
|
||||||
|
{
|
||||||
|
SetForegroundWindow(window);
|
||||||
|
ProcessButtonClick(BTN_RUN);
|
||||||
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
disk2Card.NotifyInvalidImage(iDrive, filename, Error);
|
disk2Card.NotifyInvalidImage(iDrive, filename, Error);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user