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:
@@ -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] );
|
||||
|
||||
Reference in New Issue
Block a user