| 2034 | //------------------------------------- |
| 2035 | |
| 2036 | bool CImageHelperBase::WOZUpdateInfo(ImageInfo* pImageInfo, uint32_t& dwOffset) |
| 2037 | { |
| 2038 | if (m_WOZHelper.ProcessChunks(pImageInfo, dwOffset) != eMatch) |
| 2039 | { |
| 2040 | GetFrame().FrameMessageBox("Malformed WOZ image.\nUnable to use this image.", "AppleWin: WOZ chunks", MB_ICONEXCLAMATION | MB_SETFOREGROUND); |
| 2041 | return false; |
| 2042 | } |
| 2043 | |
| 2044 | if (m_WOZHelper.IsWriteProtected()) |
| 2045 | pImageInfo->bWriteProtected = true; |
| 2046 | |
| 2047 | pImageInfo->optimalBitTiming = m_WOZHelper.GetOptimalBitTiming(); |
| 2048 | pImageInfo->maxNibblesPerTrack = m_WOZHelper.GetMaxNibblesPerTrack(); |
| 2049 | pImageInfo->bootSectorFormat = m_WOZHelper.GetBootSectorFormat(); |
| 2050 | |
| 2051 | m_WOZHelper.InvalidateInfo(); |
| 2052 | return true; |
| 2053 | } |
| 2054 | |
| 2055 | //----------------------------------------------------------------------------- |
| 2056 |
no test coverage detected