fix saving and copying of tap attack notes

This commit is contained in:
Chris Danford
2003-11-17 03:38:24 +00:00
parent 929c8108c8
commit 3b8718c1e1
11 changed files with 257 additions and 127 deletions
+10 -1
View File
@@ -109,7 +109,16 @@ void NotesWriterSM::WriteSMNotesTag( const Steps &in, FILE* fp )
* newline and they'll accumulate. */
fprintf( fp, " %s:", join(",",asRadarValues).c_str() );
fprintf( fp, "%s;\n", in.GetSMNoteData().c_str() );
CString sNoteData;
CString sAttackData;
in.GetSMNoteData( sNoteData, sAttackData );
fprintf( fp, "%s", sNoteData.c_str() );
if( sAttackData.empty() )
fprintf( fp, ";\n" );
else
fprintf( fp, ":\n%s;\n", sAttackData.c_str() );
}
bool NotesWriterSM::Write(CString sPath, const Song &out, bool bSavingCache)