From 4e92c6c77d0ea195e9adab7822211cc716e40ffc Mon Sep 17 00:00:00 2001 From: Jason Felds Date: Mon, 17 Jul 2006 18:32:21 +0000 Subject: [PATCH] Add syntax warning. --- stepmania/src/NotesLoaderKSF.cpp | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/stepmania/src/NotesLoaderKSF.cpp b/stepmania/src/NotesLoaderKSF.cpp index 256093dd62..1b41189cb4 100644 --- a/stepmania/src/NotesLoaderKSF.cpp +++ b/stepmania/src/NotesLoaderKSF.cpp @@ -172,10 +172,19 @@ bool KSFLoader::LoadFromKSFFile( const RString &sPath, Steps &out, const Song &s break; if( sRowString.size() != 13 ) - { - LOG->Warn("File %s had a RowString with an improper length (\"%s\"); corrupt notes ignored", - sPath.c_str(), sRowString.c_str()); - return false; + { + if ((sRowString[0] == '|') && + (sRowString[1] == 'T' || sRowString[1] == 'B' || sRowString[1] == 'D')) + { + LOG->Warn("File %s had Direct Move syntax %s which is currently unsupported; said part ignored", + sPath.c_str(), sRowString.c_str()); + } + else + { + LOG->Warn("File %s had a RowString with an improper length (\"%s\"); corrupt notes ignored", + sPath.c_str(), sRowString.c_str()); + } + return false; } /* Half-doubles is offset; "0011111100000". */