From 254019b615d4b5a732913ecdca70f4df96e5a91b Mon Sep 17 00:00:00 2001 From: Jason Felds Date: Tue, 14 Jun 2011 14:28:52 -0400 Subject: [PATCH] Less stubby. --- src/NotesLoaderSM.cpp | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/src/NotesLoaderSM.cpp b/src/NotesLoaderSM.cpp index 0265197ecd..5dc4a4c649 100644 --- a/src/NotesLoaderSM.cpp +++ b/src/NotesLoaderSM.cpp @@ -641,6 +641,48 @@ bool SMLoader::LoadFromBGChangesString( BackgroundChange &change, const RString bool SMLoader::LoadNotedataFromSimfile( const RString &path, Steps &out ) { // stub: do this later. + MsdFile msd; + if( !msd.ReadFile( path, true ) ) // unescape + { + LOG->UserLog("Song file", + path, + "couldn't be opened: %s", + msd.GetError().c_str() ); + return false; + } + for (unsigned i = 0; iUserLog("Song file", + path, + "has %d fields in a #NOTES tag, but should have at least 7.", + iNumParams ); + continue; + } + /* + Steps* pNewNotes = out.CreateSteps(); + LoadFromTokens( + sParams[1], + sParams[2], + sParams[3], + sParams[4], + sParams[5], + sParams[6], + *pNewNotes ); + + out.AddSteps( pNewNotes ); + */ + } + } return false; }