mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-03 03:22:30 +02: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;
|
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
Block a user