Reduce the precision of nps to 3 decimal places, and don't use ssprint to join all of it together (very very long charts would cause a stack overflow on Windows)

This commit is contained in:
Michael Votaw
2024-10-05 08:39:48 -05:00
committed by teejusb
parent 6a7dd95212
commit 97cefc6d71
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -446,7 +446,8 @@ static RString GetSSCNoteData( const Song &song, const Steps &in, bool bSavingCa
const MeasureInfo &ms = in.GetMeasureInfo(pn);
asMeasureInfo.push_back(ms.ToString());
}
lines.push_back(ssprintf("#MEASUREINFO:%s;", join("|", asMeasureInfo).c_str()));
RString allMeasureInfo = "#MEASUREINFO:" + join("|", asMeasureInfo) + ";";
lines.push_back(allMeasureInfo);
// NOTE(MV): #STEPFILENAME has to be at the end of the cache tags,
// because it's used in SSCLoader::LoadFromSimfile to determine when