edits cleanup:

- only allow reasonable file sizes
 - only allow one Steps per edit file
 - only allow 5 edits per-song, per-profile
This commit is contained in:
Chris Danford
2004-04-23 00:26:51 +00:00
parent d3f3db2751
commit cca71d1d3f
9 changed files with 51 additions and 19 deletions
+12
View File
@@ -1317,6 +1317,18 @@ void Song::FreeAllLoadedFromProfiles()
}
}
int Song::GetNumStepsLoadedFromProfile( ProfileSlot slot ) const
{
int iCount = 0;
for( unsigned s=0; s<m_apNotes.size(); s++ )
{
Steps* pSteps = m_apNotes[s];
if( pSteps->GetLoadedFromProfileSlot() == slot )
iCount++;
}
return iCount;
}
bool Song::HasSignificantBpmChangesOrStops() const
{
// Don't consider BPM changes that only are only for maintaining sync as