Add syntax warning.

This commit is contained in:
Jason Felds
2006-07-17 18:32:21 +00:00
parent 79f3d0b76e
commit 4e92c6c77d
+12 -3
View File
@@ -173,9 +173,18 @@ bool KSFLoader::LoadFromKSFFile( const RString &sPath, Steps &out, const Song &s
if( sRowString.size() != 13 ) if( sRowString.size() != 13 )
{ {
LOG->Warn("File %s had a RowString with an improper length (\"%s\"); corrupt notes ignored", if ((sRowString[0] == '|') &&
sPath.c_str(), sRowString.c_str()); (sRowString[1] == 'T' || sRowString[1] == 'B' || sRowString[1] == 'D'))
return false; {
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". */ /* Half-doubles is offset; "0011111100000". */