1
0
mirror of https://github.com/Raymonf/whack.git synced 2024-11-24 00:20:10 +01:00

-- commit for conversion

This commit is contained in:
Raymonf 2022-11-08 00:34:21 -05:00
parent 885854e8dc
commit 3cfb5fbc63
No known key found for this signature in database
GPG Key ID: 438459BF619B037A

View File

@ -74,8 +74,8 @@ public class TableImporter
throw new InvalidDataException($"key '{key}' is invalid");
if (strings.ContainsKey(key))
throw new DuplicateKeyException($"duplicate key '{key}' found for file {tomlPath} ({asset.FilePath})");
var exists = value.HasKey("EnglishMessageUSA") && value["EnglishMessageUSA"].IsString;
strings.Add(key, exists ? value["EnglishMessageUSA"].AsString.Value : null);
var exists = value.HasKey("JapaneseMessage") && value["JapaneseMessage"].IsString;
strings.Add(key, exists ? value["JapaneseMessage"].AsString.Value : null);
}
}