Force platform to be vita if titleid is a vita game

This commit is contained in:
jvyden 2022-01-30 15:56:32 -05:00
parent bf4b957da1
commit 89932af6e7
No known key found for this signature in database
GPG key ID: 18BCF2BE0262B278

View file

@ -139,19 +139,14 @@ public class NPTicket
_ => Platform.Unknown,
};
if (npTicket.Platform == Platform.PS3 && npTicket.GameVersion == GameVersion.LittleBigPlanetVita) npTicket.Platform = Platform.Vita;
if (npTicket.Platform == Platform.Unknown)
{
Logger.Log($"Could not determine platform from IssuerId {npTicket.IssuerId} decimal", LoggerLevelLogin.Instance);
return null;
}
#if DEBUG
if (npTicket.GameVersion == GameVersion.LittleBigPlanetVita)
{
Logger.Log($"Platform for vita ticket is {npTicket.Platform}", LoggerLevelLogin.Instance);
}
#endif
#if DEBUG
Logger.Log("npTicket data:", LoggerLevelLogin.Instance);
foreach (string line in JsonSerializer.Serialize(npTicket).Split('\n'))