Allow arbitrary indentation on the BMS loader.

This commit is contained in:
zardoru
2015-01-31 13:05:30 -03:00
parent 49bda1e0e5
commit 874ebf8754
+9 -1
View File
@@ -404,9 +404,17 @@ struct bmsCommandTree
{
line++;
if (statement.length() == 0 || statement[0] != '#') // Skip.
if (statement.length() == 0) // Skip.
return;
// LTrim the statement to allow indentation
size_t hash = statement.find('#');
if (hash == RString::npos)
return;
statement = statement.substr(hash);
size_t space = statement.find(' ');
RString name = statement.substr(0, space);
RString value = "";