mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2024-11-22 12:33:12 +00:00
BYAML : Fix crc32 computing for yaml
This commit is contained in:
parent
31102bcc37
commit
224972df98
1 changed files with 3 additions and 0 deletions
|
@ -9,6 +9,7 @@ using SharpYaml.Serialization;
|
|||
using System.Globalization;
|
||||
using Syroot.BinaryData;
|
||||
using ByamlExt.Byaml;
|
||||
using Toolbox.Library.Security.Cryptography;
|
||||
|
||||
namespace FirstPlugin
|
||||
{
|
||||
|
@ -164,6 +165,8 @@ namespace FirstPlugin
|
|||
return UInt64.Parse(value, CultureInfo.InvariantCulture);
|
||||
else if (tag == "!ll")
|
||||
return Int64.Parse(value, CultureInfo.InvariantCulture);
|
||||
else if (tag == "!h")
|
||||
return Crc32.Compute(value).ToString("x");
|
||||
else if (tag == "!p")
|
||||
return new ByamlPathIndex() { Index = Int32.Parse(value, CultureInfo.InvariantCulture) };
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue