If key is "key" and value is "value" ignore the line.
continuous-integration/drone/push Build is failing Details
continuous-integration/drone/tag Build is failing Details

This commit is contained in:
Deukhoofd 2021-11-12 12:20:53 +01:00
parent 5311df51ad
commit 003e33c05a
Signed by: Deukhoofd
GPG Key ID: F63E044490819F6F
1 changed files with 2 additions and 0 deletions

View File

@ -49,6 +49,8 @@ void LocalizationFile::LoadFile(const std::filesystem::path& path) {
std::getline(linestream, value, sep);
if (key.empty())
continue;
if (key == "key" && value == "value")
continue;
if (!IsKeyValid(key)){
std::cout << "Key not valid: '" << key << "'. Skipping key." << std::endl;
}