really fix #DISPLAYBPM writing
This commit is contained in:
@@ -236,9 +236,9 @@ bool NotesWriterDWI::Write( CString sPath, const Song &out )
|
|||||||
break;
|
break;
|
||||||
case Song::DISPLAY_SPECIFIED:
|
case Song::DISPLAY_SPECIFIED:
|
||||||
if( out.m_fDisplayBPMMin == out.m_fDisplayBPMMax )
|
if( out.m_fDisplayBPMMin == out.m_fDisplayBPMMax )
|
||||||
fprintf( fp, "#DISPLAYBPM:%.3f", out.m_fDisplayBPMMin );
|
fprintf( fp, "#DISPLAYBPM:%.3f;\n", out.m_fDisplayBPMMin );
|
||||||
else
|
else
|
||||||
fprintf( fp, "#DISPLAYBPM:%.3f..%.3f", out.m_fDisplayBPMMin, out.m_fDisplayBPMMax );
|
fprintf( fp, "#DISPLAYBPM:%.3f..%.3f;\n", out.m_fDisplayBPMMin, out.m_fDisplayBPMMax );
|
||||||
break;
|
break;
|
||||||
case Song::DISPLAY_RANDOM:
|
case Song::DISPLAY_RANDOM:
|
||||||
fprintf( fp, "#DISPLAYBPM:*" );
|
fprintf( fp, "#DISPLAYBPM:*" );
|
||||||
|
|||||||
@@ -43,12 +43,12 @@ void NotesWriterSM::WriteGlobalTags(FILE *fp, const Song &out)
|
|||||||
break;
|
break;
|
||||||
case Song::DISPLAY_SPECIFIED:
|
case Song::DISPLAY_SPECIFIED:
|
||||||
if( out.m_fDisplayBPMMin == out.m_fDisplayBPMMax )
|
if( out.m_fDisplayBPMMin == out.m_fDisplayBPMMax )
|
||||||
fprintf( fp, "#DISPLAYBPM:%.3f;", out.m_fDisplayBPMMin );
|
fprintf( fp, "#DISPLAYBPM:%.3f;\n", out.m_fDisplayBPMMin );
|
||||||
else
|
else
|
||||||
fprintf( fp, "#DISPLAYBPM:%.3f,%.3f;", out.m_fDisplayBPMMin, out.m_fDisplayBPMMax );
|
fprintf( fp, "#DISPLAYBPM:%.3f,%.3f;\n", out.m_fDisplayBPMMin, out.m_fDisplayBPMMax );
|
||||||
break;
|
break;
|
||||||
case Song::DISPLAY_RANDOM:
|
case Song::DISPLAY_RANDOM:
|
||||||
fprintf( fp, "#DISPLAYBPM:*;" );
|
fprintf( fp, "#DISPLAYBPM:*;\n" );
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user