title accessors like Song

This commit is contained in:
Glenn Maynard
2004-05-25 03:44:47 +00:00
parent c70ca6eb35
commit eba469f05d
2 changed files with 10 additions and 0 deletions
+7
View File
@@ -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. */