MCPcopy Create free account
hub / github.com/AppleWin/AppleWin / WOZUpdateInfo

Method WOZUpdateInfo

source/DiskImageHelper.cpp:2036–2053  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2034//-------------------------------------
2035
2036bool 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

Callers 1

ImageWriteTrackFunction · 0.80

Calls 7

ProcessChunksMethod · 0.80
FrameMessageBoxMethod · 0.80
IsWriteProtectedMethod · 0.80
GetOptimalBitTimingMethod · 0.80
GetMaxNibblesPerTrackMethod · 0.80
GetBootSectorFormatMethod · 0.80
InvalidateInfoMethod · 0.80

Tested by

no test coverage detected