Explicitly cache #PEAKNPS instead of deriving it from NPSPerMeasure.

This commit is contained in:
Michael Votaw
2025-03-18 19:26:00 -05:00
committed by teejusb
parent 58f88569d5
commit bb6f55e8b9
4 changed files with 37 additions and 14 deletions
+3
View File
@@ -465,6 +465,9 @@ static RString GetSSCNoteData( const Song &song, const Steps &in, bool bSavingCa
lines.push_back( ssprintf( "#NOTESPERMEASURE:%s;", join("|",notesPerMeasureStrings).c_str() ) );
const std::vector<float> &peakNps = in.GetAllPeakNps();
lines.push_back("#PEAKNPS:" + serialize(peakNps, "|", 3) + ";");
// NOTE(MV): #STEPFILENAME has to be at the end of the cache tags,
// because it's used in SSCLoader::LoadFromSimfile to determine when
// to switch the state back to GETTING_SONG_INFO, which means any tags