Make it so comments don't take up gecko space
Unlike notes, we want comments to be completely ignored
This commit is contained in:
parent
be9416c462
commit
fcf4589aa3
|
@ -23,11 +23,12 @@ void LoadCodes(const IniFile& globalIni, const IniFile& localIni, std::vector<Ge
|
||||||
|
|
||||||
GeckoCode gcode;
|
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)
|
for (auto& line : lines)
|
||||||
{
|
{
|
||||||
if (line.empty())
|
|
||||||
continue;
|
|
||||||
|
|
||||||
std::istringstream ss(line);
|
std::istringstream ss(line);
|
||||||
|
|
||||||
switch ((line)[0])
|
switch ((line)[0])
|
||||||
|
|
Loading…
Reference in New Issue