mirror of
https://github.com/Raymonf/whack.git
synced 2024-11-12 04:10:46 +01:00
-- commit for conversion
This commit is contained in:
parent
885854e8dc
commit
3cfb5fbc63
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user