diff --git a/stepmania/src/Course.cpp b/stepmania/src/Course.cpp index ac04ee1d0a..42cc403c78 100644 --- a/stepmania/src/Course.cpp +++ b/stepmania/src/Course.cpp @@ -1028,6 +1028,16 @@ void Course::GetTrails( vector &AddTo, StepsType st ) const } } +void Course::GetAllTrails( vector &AddTo ) const +{ + vector vStepsTypesToShow; + GAMEMAN->GetStepsTypesForGame( GAMESTATE->m_pCurGame, vStepsTypesToShow ); + FOREACH( StepsType, vStepsTypesToShow, st ) + { + GetTrails( AddTo, *st ); + } +} + bool Course::HasMods() const { FOREACH_CONST( CourseEntry, m_entries, e ) diff --git a/stepmania/src/Course.h b/stepmania/src/Course.h index 24e1bbe1af..76f231a779 100644 --- a/stepmania/src/Course.h +++ b/stepmania/src/Course.h @@ -111,6 +111,7 @@ public: // Dereferences course_entries and returns only the playable Songs and Steps Trail* GetTrail( StepsType st, CourseDifficulty cd=DIFFICULTY_MEDIUM ) const; void GetTrails( vector &AddTo, StepsType st ) const; + void GetAllTrails( vector &AddTo ) const; float GetMeter( StepsType st, CourseDifficulty cd=DIFFICULTY_MEDIUM ) const; bool HasMods() const; bool AllSongsAreFixed() const;