mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2024-11-22 04:23:09 +00:00
BYAML : Make sure the !h tag is only used for calculated hash strings
This commit is contained in:
parent
196a7f5525
commit
4ac5dc5e3c
1 changed files with 4 additions and 3 deletions
|
@ -228,11 +228,12 @@ namespace FirstPlugin
|
|||
{
|
||||
uint hash = Convert.ToUInt32(key, 16);
|
||||
if (BYAML.Hashes.ContainsKey(hash))
|
||||
{
|
||||
key = $"{BYAML.Hashes[hash]}";
|
||||
|
||||
keyNode = new YamlScalarNode(key);
|
||||
keyNode.Tag = "!h";
|
||||
}
|
||||
}
|
||||
yamlNode.Add(keyNode, SaveNode(item.Key, item.Value));
|
||||
}
|
||||
return yamlNode;
|
||||
|
|
Loading…
Reference in a new issue