Preparing for a new #TAG, "WARNINGS".

There needs to be a place for warnings on
a stepfile without using #TITLE, #SUBTITLE,
or #ARTIST. This tag will hopefully be that new place.

No version or cache incrementing yet: it's still
not complete. Still, what's here shouldn't harm anything.
This commit is contained in:
Jason Felds
2011-07-07 11:48:33 -04:00
parent a40fde4ab0
commit fc19060491
4 changed files with 55 additions and 0 deletions
+14
View File
@@ -145,6 +145,16 @@ void SSCLoader::ProcessScrolls( TimingData &out, const RString sParam )
}
}
void SSCLoader::ProcessWarnings( Steps *out, const RString param)
{
vector<RString> splitWarnings;
split(param, ",", splitWarnings);
FOREACH(RString, splitWarnings, s)
{
out->SetWarning(*s);
}
}
bool SSCLoader::LoadFromSimfile( const RString &sPath, Song &out, bool bFromCache )
{
@@ -446,6 +456,10 @@ bool SSCLoader::LoadFromSimfile( const RString &sPath, Song &out, bool bFromCach
}
case GETTING_STEP_INFO:
{
if (sValueName=="WARNINGS")
{
ProcessWarnings(pNewNotes, sParams[1]);
}
if( sValueName=="STEPSTYPE" )
{
pNewNotes->m_StepsType = GAMEMAN->StringToStepsType( sParams[1] );