Make it so comments don't take up gecko space

Unlike notes, we want comments to be completely ignored
This commit is contained in:
JDV 2016-07-29 10:04:51 -06:00
parent be9416c462
commit fcf4589aa3
1 changed files with 4 additions and 3 deletions

View File

@ -23,11 +23,12 @@ void LoadCodes(const IniFile& globalIni, const IniFile& localIni, std::vector<Ge
GeckoCode gcode;
lines.erase(std::remove_if(lines.begin(), lines.end(),
[](const auto& line) { return line.empty() || line[0] == '#'; }),
lines.end());
for (auto& line : lines)
{
if (line.empty())
continue;
std::istringstream ss(line);
switch ((line)[0])