Adjust ini parser (#212)

This PR removes mid-line ini comments which were causing issue because
users had `#` and `;` in their file path.

---

By creating this pull request, I understand that code that is AI
generated or otherwise automatically generated may be rejected without
further discussion.
I declare that I fully understand all code I pushed into this PR, and
wrote all this code myself and own the rights to this code.
This commit is contained in:
Tixx
2025-09-27 20:08:13 +02:00
committed by GitHub

View File

@@ -120,13 +120,6 @@ namespace Utils {
if (line.empty() || line[0] == ';' || line[0] == '#') if (line.empty() || line[0] == ';' || line[0] == '#')
continue; continue;
for (auto& c : line) {
if (c == '#' || c == ';') {
line = line.substr(0, &c - &line[0]);
break;
}
}
auto invalidLineLog = [&]{ auto invalidLineLog = [&]{
debug("Invalid INI line: " + line); debug("Invalid INI line: " + line);
debug("Surrounding lines: \n" + debug("Surrounding lines: \n" +