Fix hash return values

This commit is contained in:
Timothy Baldridge 2020-04-26 07:37:57 -06:00
parent 1327745115
commit 5f35166895
2 changed files with 3 additions and 1 deletions

View File

@ -5,6 +5,7 @@ using System.IO;
using System.Security.Cryptography;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json;
using File = Alphaleonis.Win32.Filesystem.File;
using Path = Alphaleonis.Win32.Filesystem.Path;
@ -15,6 +16,7 @@ namespace Wabbajack.Common
/// Struct representing a xxHash64 value. It's a struct with a ulong in it, but wrapped so we don't confuse
/// it with other longs in the system.
/// </summary>
[JsonConverter(typeof(Utils.HashJsonConverter))]
public struct Hash
{
private readonly ulong _code;

View File

@ -84,7 +84,7 @@ namespace Wabbajack.Common
return result;
}
private class HashJsonConverter : JsonConverter<Hash>
public class HashJsonConverter : JsonConverter<Hash>
{
public override void WriteJson(JsonWriter writer, Hash value, JsonSerializer serializer)
{