Revert "Remove #INSTRUMENTTRACK. It's guitar only."

This reverts commit 176b6f55ea.

Glad I learned this command.
This commit is contained in:
Jason Felds
2011-07-30 15:56:30 -04:00
parent 2961d4532b
commit 7c75347e40
10 changed files with 117 additions and 8 deletions
+23
View File
@@ -179,6 +179,23 @@ void SMLoader::ProcessAttacks( AttackArray &attacks, MsdFile::value_t params )
}
}
void SMLoader::ProcessInstrumentTracks( Song &out, const RString &sParam )
{
vector<RString> vs1;
split( sParam, ",", vs1 );
FOREACH_CONST( RString, vs1, s )
{
vector<RString> vs2;
split( *s, "=", vs2 );
if( vs2.size() >= 2 )
{
InstrumentTrack it = StringToInstrumentTrack( vs2[0] );
if( it != InstrumentTrack_Invalid )
out.m_sInstrumentTrackFile[it] = vs2[1];
}
}
}
bool SMLoader::ProcessBPMs( TimingData &out, const RString line, const int rowsPerBeat )
{
vector<RString> arrayBPMChangeExpressions;
@@ -766,6 +783,12 @@ bool SMLoader::LoadFromSimfile( const RString &sPath, Song &out, bool bFromCache
{
ProcessTickcounts(out.m_SongTiming, sParams[1]);
}
else if( sValueName=="INSTRUMENTTRACK" )
{
ProcessInstrumentTracks( out, sParams[1] );
}
else if( sValueName=="MUSICLENGTH" )
{