pull this out of the header
This commit is contained in:
@@ -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
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user