From 4365b2b4965b11e962f0773f207cf293e6cd6969 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sun, 18 Jan 2004 04:51:39 +0000 Subject: [PATCH] use SMLoader::LoadTimingFromSMFile --- stepmania/src/RageSounds.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/stepmania/src/RageSounds.cpp b/stepmania/src/RageSounds.cpp index 45e0b43300..341caec26b 100644 --- a/stepmania/src/RageSounds.cpp +++ b/stepmania/src/RageSounds.cpp @@ -6,7 +6,6 @@ #include "RageUtil.h" #include "GameState.h" #include "TimingData.h" -#include "MsdFile.h" #include "NotesLoaderSM.h" RageSounds *SOUND = NULL; @@ -156,15 +155,8 @@ void StartMusic( MusicToPlay &ToPlay ) if( IsAFile(ToPlay.timing_file) ) { LOG->Trace("Found '%s'", ToPlay.timing_file.c_str()); - MsdFile msd; - bool bResult = msd.ReadFile( ToPlay.timing_file ); - if( !bResult ) - LOG->Warn( "Couldn't load %s, \"%s\"", ToPlay.timing_file.c_str(), msd.GetError().c_str() ); - else - { - SMLoader::LoadTimingFromSMFile( msd, NewMusic->m_NewTiming ); + if( SMLoader::LoadTimingFromFile( ToPlay.timing_file, NewMusic->m_NewTiming ) ) ToPlay.HasTiming = true; - } } if( ToPlay.HasTiming && ToPlay.force_loop && ToPlay.length_sec != -1 )