diff --git a/stepmania/src/IniFile.cpp b/stepmania/src/IniFile.cpp index 65076e629b..58c85e15dd 100644 --- a/stepmania/src/IniFile.cpp +++ b/stepmania/src/IniFile.cpp @@ -51,9 +51,23 @@ bool IniFile::ReadFile() CString line; while (getline(file, line)) { + + if(line.size() >= 3 && + line[0] == '\xef' && + line[1] == '\xbb' && + line[2] == '\xbf' + ) + { + /* Obnoxious NT marker for UTF-8. Remove it. */ + line.erase(0, 3); + } + if (line == "") continue; + if (line.substr(0, 2) == "//" || line.substr(0) == "#") + continue; /* comment */ + if (line[0] == '[' && line[line.GetLength()-1] == ']') //if a section heading { keyname = line;