diff --git a/stepmania/src/Course.cpp b/stepmania/src/Course.cpp index ecc646dfd2..762ef1a0e7 100644 --- a/stepmania/src/Course.cpp +++ b/stepmania/src/Course.cpp @@ -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. */ diff --git a/stepmania/src/Course.h b/stepmania/src/Course.h index 41dcbdbf09..16c38e0a99 100644 --- a/stepmania/src/Course.h +++ b/stepmania/src/Course.h @@ -98,6 +98,9 @@ public: vector 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;