diff --git a/Main/src/ViewDirectoryEntries.cpp b/Main/src/ViewDirectoryEntries.cpp index f2971ee6..d3ef9cd7 100644 --- a/Main/src/ViewDirectoryEntries.cpp +++ b/Main/src/ViewDirectoryEntries.cpp @@ -181,23 +181,11 @@ RepaintData(); return TRUE; } - case ID_TIME:{ + case ID_TIME: // display of low-level Track timing f->Seek( GetCaretLogPos(), CFile::begin ); - const TPhysicalAddress &chs=f->GetCurrentPhysicalAddress(); - if (CImage::CTrackReader tr=IMAGE->ReadTrack( chs.cylinder, chs.head )){ - TLogTime tDataStart; - if (IMAGE->GetSectorData( chs, 0, Revolution::ANY_GOOD, nullptr, nullptr, &tDataStart )!=nullptr){ - const auto peList=tr.ScanAndAnalyze( CActionProgress::None, false ); - const auto &peData=(CImage::CTrackReader::TDataParseEvent &)peList.GetAt( - peList.GetPositionByStart( tDataStart, CImage::CTrackReader::TParseEvent::DATA_OK, CImage::CTrackReader::TParseEvent::DATA_BAD ) - ); - const auto &bi=peData.byteInfos[ f->GetPositionInCurrentSector() ]; - tr.ShowModal( nullptr, 0, MB_OK, true, bi.tStart, _T("KUNDA") ); - } - } + IMAGE->ShowModalTrackTimingAt( f->GetCurrentPhysicalAddress(), 0, f->GetPositionInCurrentSector(), Revolution::ANY_GOOD ); return TRUE; - } } break; }