diff --git a/src/NotesLoaderSSC.cpp b/src/NotesLoaderSSC.cpp index 70d8947079..cd1fdcf9cf 100644 --- a/src/NotesLoaderSSC.cpp +++ b/src/NotesLoaderSSC.cpp @@ -11,6 +11,7 @@ #include "Song.h" #include "SongManager.h" #include "Steps.h" +#include "Attack.h" #include "PrefsManager.h" /** diff --git a/src/NotesWriterSM.cpp b/src/NotesWriterSM.cpp index 920081509a..c50c9890f5 100644 --- a/src/NotesWriterSM.cpp +++ b/src/NotesWriterSM.cpp @@ -134,6 +134,19 @@ static void WriteGlobalTags( RageFile &f, const Song &out ) } } f.PutLine( ";" ); + + f.Write( "#ATTACKS:" ); + for( unsigned j = 0; j < out.m_Attacks.size(); j++ ) + { + const Attack &a = out.m_Attacks[j]; + f.Write( ssprintf( "TIME=%.2f:LEN=%.2f:MODS=%s", + a.fStartSecond, a.fSecsRemaining, a.sModifiers.c_str() ) ); + + if( j+1 < out.m_Attacks.size() ) + f.Write( ":" ); + f.PutLine( "" ); + } + f.PutLine( ";" ); f.Write( "#DELAYS:" ); for( unsigned i=0; i