pull this out of the header

This commit is contained in:
Glenn Maynard
2003-01-09 09:01:20 +00:00
parent 0980891b5a
commit 217ce59155
2 changed files with 17 additions and 11 deletions
+16
View File
@@ -1041,6 +1041,22 @@ CString Song::GetBackgroundPath() const
return m_sSongDir+m_sBackgroundFile;
}
CString Song::GetSortTitle() const
{
CString Title = m_sMainTitleTranslit.empty()?
m_sMainTitle: m_sMainTitleTranslit;
CString SubTitle = m_sSubTitleTranslit.empty()?
m_sSubTitle:m_sSubTitleTranslit;
if(!SubTitle.empty())
{
Title += " " + SubTitle;
}
return Title;
}
/* Get the first/last beat of any currently active note pattern. If two
* players are active, they often have the same start beat, but they don't
* have to.
+1 -11
View File
@@ -101,17 +101,7 @@ public:
CString m_sCredit;
CString GetFullTitle() const { return m_sMainTitle + (m_sSubTitle.GetLength()? (" " + m_sSubTitle):""); }
CString GetSortTitle() const { return
(m_sMainTitleTranslit.empty()?
m_sMainTitle:
m_sMainTitleTranslit)
+
(m_sSubTitleTranslit.empty()?
(m_sSubTitle.empty()?
"":
" " + m_sSubTitle):
" " + m_sSubTitleTranslit);
}
CString GetSortTitle() const;
CString m_sMusicFile;
unsigned m_iMusicBytes;