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

Method CloneFrame

Source/SongData.cpp:361–372  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

359}
360
361bool CSongData::CloneFrame(unsigned Frame) {
362 // insert new frame with next free pattern numbers
363 if (!InsertFrame(Frame))
364 return false;
365
366 // copy old patterns into new
367 VisitTracks([&] (CTrackData &, stChannelID ch) {
368 GetPatternOnFrame(ch, Frame) = GetPatternOnFrame(ch, Frame - 1);
369 });
370
371 return true;
372}
373
374CBookmarkCollection &CSongData::GetBookmarks() {
375 return bookmarks_;

Callers 1

RedoMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected