MCPcopy Create free account
hub / github.com/HertzDevil/0CC-FamiTracker / IsMarkerValid

Method IsMarkerValid

Source/FamiTrackerView.cpp:1324–1336  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1322}
1323
1324bool CFamiTrackerView::IsMarkerValid() const // // //
1325{
1326 if (m_iMarkerFrame < 0 || m_iMarkerRow < 0)
1327 return false;
1328
1329 const CConstSongView *pSongView = GetSongView();
1330
1331 if (m_iMarkerFrame >= static_cast<int>(pSongView->GetSong().GetFrameCount()))
1332 return false;
1333 if (m_iMarkerRow >= (int)pSongView->GetFrameLength(m_iMarkerFrame))
1334 return false;
1335 return true;
1336}
1337
1338////////////////////////////////////////////////////////////////////////////////////////////////////////////
1339// Tracker playing routines

Callers 2

OnTrackerPlayMarkerMethod · 0.80

Calls 3

GetSongMethod · 0.80
GetFrameLengthMethod · 0.80
GetFrameCountMethod · 0.45

Tested by

no test coverage detected