/// <summary>Checks to see if the data belongs to a Gen7 save</summary> /// <param name="data">Save data of which to determine the type</param> /// <returns>Version Identifier or Invalid if type cannot be determined.</returns> private static GameVersion GetIsG8SAV(byte[] data) { if (data.Length != SIZE_G8SWSH) return Invalid; return SwishCrypto.GetIsHashValid(data) ? SWSH : Invalid; }
/// <summary>Checks to see if the data belongs to a Gen7 save</summary> /// <param name="data">Save data of which to determine the type</param> /// <returns>Version Identifier or Invalid if type cannot be determined.</returns> private static GameVersion GetIsG8SAV(byte[] data) { if (!SizesSWSH.Contains(data.Length)) { return(Invalid); } return(SwishCrypto.GetIsHashValid(data) ? SWSH : Invalid); }
/// <summary>Checks to see if the data belongs to a Gen7 save</summary> /// <param name="data">Save data of which to determine the type</param> /// <returns>Version Identifier or Invalid if type cannot be determined.</returns> private static GameVersion GetIsG8SAV(byte[] data) { if (data.Length != SIZE_G8SWSH && data.Length != SIZE_G8SWSH_1) { return(Invalid); } return(SwishCrypto.GetIsHashValid(data) ? SWSH : Invalid); }