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

Method GetFreePatternIndex

Source/SongData.cpp:70–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68}
69
70unsigned CSongData::GetFreePatternIndex(stChannelID Channel, unsigned Whence) const { // // //
71 while (++Whence < MAX_PATTERN)
72 if (!IsPatternInUse(Channel, Whence) && GetPattern(Channel, Whence).IsEmpty())
73 return Whence;
74
75 return -1;
76}
77
78stChanNote &CSongData::GetPatternData(stChannelID Channel, unsigned Pattern, unsigned Row) // // //
79{

Callers 2

ClonePatternsFunction · 0.80
SaveStateMethod · 0.80

Calls 1

IsEmptyMethod · 0.80

Tested by

no test coverage detected