From b51ddec029f65ef9803a32ee7d5160da5658bba9 Mon Sep 17 00:00:00 2001 From: jvyden Date: Sun, 30 Jan 2022 14:58:45 -0500 Subject: [PATCH] Assert if gameVersion is vita and platform is not vita --- ProjectLighthouse/Types/Tickets/NPTicket.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ProjectLighthouse/Types/Tickets/NPTicket.cs b/ProjectLighthouse/Types/Tickets/NPTicket.cs index 80873883..426df2d4 100644 --- a/ProjectLighthouse/Types/Tickets/NPTicket.cs +++ b/ProjectLighthouse/Types/Tickets/NPTicket.cs @@ -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'))