artist course fixes

support translit fallbacks with artist courses
This commit is contained in:
Glenn Maynard
2004-05-25 04:08:21 +00:00
parent 044442bb76
commit dd79208b67
5 changed files with 30 additions and 8 deletions
+4 -1
View File
@@ -433,7 +433,7 @@ void Course::AutogenNonstopFromGroup( CString sGroupName, Difficulty diff )
m_entries.pop_back();
}
void Course::AutogenOniFromArtist( CString sArtistName, vector<Song*> aSongs, Difficulty dc )
void Course::AutogenOniFromArtist( CString sArtistName, CString sArtistNameTranslit, vector<Song*> aSongs, Difficulty dc )
{
m_bIsAutogen = true;
m_bRepeat = false;
@@ -449,6 +449,9 @@ void Course::AutogenOniFromArtist( CString sArtistName, vector<Song*> aSongs, Di
/* "Artist Oni" is a little repetitive; "by Artist" stands out less, and lowercasing
* "by" puts more emphasis on the artist's name. It also sorts them together. */
m_sName = "by " + sArtistName;
if( sArtistNameTranslit != sArtistName )
m_sNameTranslit = "by " + sArtistNameTranslit;
// m_sBannerPath = ""; // XXX