title accessors like Song
This commit is contained in:
@@ -550,6 +550,13 @@ struct SortTrailEntry
|
||||
bool operator< ( const SortTrailEntry &rhs ) const { return SortMeter < rhs.SortMeter; }
|
||||
};
|
||||
|
||||
CString Course::GetDisplayName() const
|
||||
{
|
||||
if( !PREFSMAN->m_bShowNative )
|
||||
return GetTranslitName();
|
||||
return m_sName;
|
||||
}
|
||||
|
||||
/* This is called by many simple functions, like Course::GetTotalSeconds, and may
|
||||
* be called on all songs to sort. It can take time to execute, so we cache the
|
||||
* results. */
|
||||
|
||||
@@ -98,6 +98,9 @@ public:
|
||||
|
||||
vector<CourseEntry> m_entries;
|
||||
|
||||
/* If PREFSMAN->m_bShowNative is off, this are the same as GetTranslit* below. */
|
||||
CString GetDisplayName() const;
|
||||
CString GetTranslitName() const { return m_sNameTranslit.size()? m_sNameTranslit: m_sName; }
|
||||
|
||||
// Dereferences course_entries and returns only the playable Songs and Steps
|
||||
Trail* GetTrail( StepsType st, CourseDifficulty cd ) const;
|
||||
|
||||
Reference in New Issue
Block a user