use colons in #DISPLAYBPM; that's what the reading code did, anyway,
and it's more consistent
This commit is contained in:
@@ -149,7 +149,7 @@ bool SMLoader::LoadFromSMFile( CString sPath, Song &out )
|
|||||||
|
|
||||||
else if( 0==stricmp(sValueName,"DISPLAYBPM") )
|
else if( 0==stricmp(sValueName,"DISPLAYBPM") )
|
||||||
{
|
{
|
||||||
// #DISPLAYBPM:[xxx,xxx]|[xxx]|[*];
|
// #DISPLAYBPM:[xxx][xxx:xxx]|[*];
|
||||||
if( sParams[1] == "*" )
|
if( sParams[1] == "*" )
|
||||||
out.m_DisplayBPMType = Song::DISPLAY_RANDOM;
|
out.m_DisplayBPMType = Song::DISPLAY_RANDOM;
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ void NotesWriterSM::WriteGlobalTags(FILE *fp, const Song &out)
|
|||||||
if( out.m_fDisplayBPMMin == out.m_fDisplayBPMMax )
|
if( out.m_fDisplayBPMMin == out.m_fDisplayBPMMax )
|
||||||
fprintf( fp, "#DISPLAYBPM:%.3f;\n", out.m_fDisplayBPMMin );
|
fprintf( fp, "#DISPLAYBPM:%.3f;\n", out.m_fDisplayBPMMin );
|
||||||
else
|
else
|
||||||
fprintf( fp, "#DISPLAYBPM:%.3f,%.3f;\n", 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:*;\n" );
|
fprintf( fp, "#DISPLAYBPM:*;\n" );
|
||||||
|
|||||||
Reference in New Issue
Block a user