mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-29 12:32:47 +00:00
Merge pull request #4065 from clinchergt/ignore-comments-geckocodes
Make it so comments don't take up gecko space
This commit is contained in:
commit
a3438f916b
@ -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])
|
||||
|
Loading…
x
Reference in New Issue
Block a user