show "????" for blank names
This commit is contained in:
@@ -298,11 +298,28 @@ void PaneDisplay::SetContent( PaneContents c )
|
|||||||
switch( c )
|
switch( c )
|
||||||
{
|
{
|
||||||
case SONG_MACHINE_HIGH_NAME:
|
case SONG_MACHINE_HIGH_NAME:
|
||||||
|
if( PROFILEMAN->GetMachineProfile()->GetStepsHighScoreList(pSong,pSteps).vHighScores.empty() )
|
||||||
|
{
|
||||||
|
str = "";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
str = PROFILEMAN->GetMachineProfile()->GetStepsHighScoreList(pSong,pSteps).GetTopScore().sName;
|
str = PROFILEMAN->GetMachineProfile()->GetStepsHighScoreList(pSong,pSteps).GetTopScore().sName;
|
||||||
|
if( str.empty() )
|
||||||
|
str = "????";
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case COURSE_MACHINE_HIGH_NAME:
|
case COURSE_MACHINE_HIGH_NAME:
|
||||||
|
if( PROFILEMAN->GetMachineProfile()->GetCourseHighScoreList(pCourse,pTrail).vHighScores.empty() )
|
||||||
|
{
|
||||||
|
str = "";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
str = PROFILEMAN->GetMachineProfile()->GetCourseHighScoreList(pCourse,pTrail).GetTopScore().sName;
|
str = PROFILEMAN->GetMachineProfile()->GetCourseHighScoreList(pCourse,pTrail).GetTopScore().sName;
|
||||||
|
if( str.empty() )
|
||||||
|
str = "????";
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case SONG_MACHINE_HIGH_SCORE:
|
case SONG_MACHINE_HIGH_SCORE:
|
||||||
|
|||||||
Reference in New Issue
Block a user