mirror of
https://github.com/BeamMP/BeamMP-Launcher.git
synced 2026-06-22 16:41:16 +00:00
Remove mid-line ini comments
This commit is contained in:
@@ -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" +
|
||||||
|
|||||||
Reference in New Issue
Block a user