From b62871059e649ff99864cdeec3ebbf0a99fd289a Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Tue, 4 Mar 2003 05:59:56 +0000 Subject: [PATCH] Don't throw due to missing #BPMS --- stepmania/src/Song.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/stepmania/src/Song.cpp b/stepmania/src/Song.cpp index 72507ac24d..b4a2e2e5ee 100644 --- a/stepmania/src/Song.cpp +++ b/stepmania/src/Song.cpp @@ -442,9 +442,15 @@ void Song::TidyUpData() if( m_sArtist == "" ) m_sArtist = "Unknown artist"; TranslateTitles(); - /* XXX don't throw due to broken songs */ if( m_BPMSegments.empty() ) - RageException::Throw( "No #BPM specified in '%s%s.'", m_sSongDir.GetString(), m_sSongFileName.GetString() ); + { + /* XXX: Once we have a way to display warnings that the user actually + * cares about (unlike most warnings), this should be one of them. */ + LOG->Warn( "No BPM segments specified in '%s%s', default provided.", + m_sSongDir.GetString(), m_sSongFileName.GetString() ); + + AddBPMSegment( BPMSegment(0, 60) ); + } // We're going to try and do something intelligent here... // The MusicSampleStart always seems to be about 100-120 beats into