Fill in Steps::m_sDescription automatically if missing.
This commit is contained in:
@@ -208,6 +208,8 @@ bool KSFLoader::LoadFromKSFFile( const CString &sPath, Steps &out, const Song &s
|
||||
|
||||
out.SetNoteData(¬edata);
|
||||
|
||||
out.TidyUpData();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -778,7 +778,9 @@ void Song::TidyUpData()
|
||||
}
|
||||
|
||||
for( i=0; i<m_apNotes.size(); i++ )
|
||||
{
|
||||
m_apNotes[i]->Compress();
|
||||
}
|
||||
}
|
||||
|
||||
void Song::TranslateTitles()
|
||||
|
||||
@@ -145,6 +145,11 @@ void Steps::TidyUpData()
|
||||
default: ASSERT(0);
|
||||
}
|
||||
}
|
||||
|
||||
if( m_sDescription.empty() )
|
||||
{
|
||||
m_sDescription = Capitalize( DifficultyToString(m_Difficulty) );
|
||||
}
|
||||
}
|
||||
|
||||
void Steps::Decompress() const
|
||||
|
||||
Reference in New Issue
Block a user