Assert if gameVersion is vita and platform is not vita

This commit is contained in:
jvyden 2022-01-30 14:58:45 -05:00
commit b51ddec029
No known key found for this signature in database
GPG key ID: 18BCF2BE0262B278

View file

@ -1,5 +1,6 @@
#nullable enable
using System;
using System.Diagnostics;
using System.IO;
using System.Text;
using System.Text.Json;
@ -145,6 +146,11 @@ public class NPTicket
_ => Platform.Unknown,
};
if (npTicket.GameVersion == GameVersion.LittleBigPlanetVita)
{
Debug.Assert(npTicket.Platform == Platform.Vita);
}
#if DEBUG
Logger.Log("npTicket data:", LoggerLevelLogin.Instance);
foreach (string line in JsonSerializer.Serialize(npTicket).Split('\n'))