If key is "key" and value is "value" ignore the line.
This commit is contained in:
parent
5311df51ad
commit
003e33c05a
|
@ -49,6 +49,8 @@ void LocalizationFile::LoadFile(const std::filesystem::path& path) {
|
||||||
std::getline(linestream, value, sep);
|
std::getline(linestream, value, sep);
|
||||||
if (key.empty())
|
if (key.empty())
|
||||||
continue;
|
continue;
|
||||||
|
if (key == "key" && value == "value")
|
||||||
|
continue;
|
||||||
if (!IsKeyValid(key)){
|
if (!IsKeyValid(key)){
|
||||||
std::cout << "Key not valid: '" << key << "'. Skipping key." << std::endl;
|
std::cout << "Key not valid: '" << key << "'. Skipping key." << std::endl;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue