Added MeasureInfo calculations, and loader/writer for #MEASUREINFO cache

This commit is contained in:
Michael Votaw
2024-07-23 17:33:53 -05:00
committed by teejusb
parent 200a44d8a1
commit 429fab2fbc
6 changed files with 313 additions and 2 deletions
+8
View File
@@ -428,6 +428,14 @@ static RString GetSSCNoteData( const Song &song, const Steps &in, bool bSavingCa
}
if (bSavingCache)
{
std::vector<RString> asMeasureInfo;
FOREACH_PlayerNumber( pn )
{
const MeasureInfo &ms = in.GetMeasureInfo(pn);
asMeasureInfo.push_back(ms.ToString());
}
lines.push_back(ssprintf("#MEASUREINFO:%s;", join("|", asMeasureInfo).c_str()));
lines.push_back(ssprintf("#STEPFILENAME:%s;", in.GetFilename().c_str()));
}
else