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.SetNoteData(¬edata);
|
||||||
|
|
||||||
|
out.TidyUpData();
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -778,7 +778,9 @@ void Song::TidyUpData()
|
|||||||
}
|
}
|
||||||
|
|
||||||
for( i=0; i<m_apNotes.size(); i++ )
|
for( i=0; i<m_apNotes.size(); i++ )
|
||||||
|
{
|
||||||
m_apNotes[i]->Compress();
|
m_apNotes[i]->Compress();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void Song::TranslateTitles()
|
void Song::TranslateTitles()
|
||||||
|
|||||||
@@ -145,6 +145,11 @@ void Steps::TidyUpData()
|
|||||||
default: ASSERT(0);
|
default: ASSERT(0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if( m_sDescription.empty() )
|
||||||
|
{
|
||||||
|
m_sDescription = Capitalize( DifficultyToString(m_Difficulty) );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void Steps::Decompress() const
|
void Steps::Decompress() const
|
||||||
|
|||||||
Reference in New Issue
Block a user