Merge pull request #4065 from clinchergt/ignore-comments-geckocodes

Make it so comments don't take up gecko space
This commit is contained in:
Pierre Bourdon 2016-07-30 18:51:53 +02:00 committed by GitHub
commit a3438f916b

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])