mirror of
https://github.com/AppleWin/AppleWin.git
synced 2024-09-28 00:54:40 +00:00
WIP: Nick's patch for .po and .hdv smaller than 800K
This commit is contained in:
parent
6fefce553a
commit
f4604e6f9f
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user