From 5fd2d0e0d31501c0f8dfc2e2c74a52bb984c0a54 Mon Sep 17 00:00:00 2001 From: jvyden Date: Mon, 8 Nov 2021 01:49:47 -0500 Subject: [PATCH] Add LBP Vita GameVersion --- ProjectLighthouse.sln.DotSettings | 2 ++ ProjectLighthouse/Helpers/GameVersionHelper.cs | 6 ++++++ ProjectLighthouse/Types/GameVersion.cs | 3 ++- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ProjectLighthouse.sln.DotSettings b/ProjectLighthouse.sln.DotSettings index f914df07..698d69e9 100644 --- a/ProjectLighthouse.sln.DotSettings +++ b/ProjectLighthouse.sln.DotSettings @@ -102,6 +102,8 @@ True True True + True + True True True True diff --git a/ProjectLighthouse/Helpers/GameVersionHelper.cs b/ProjectLighthouse/Helpers/GameVersionHelper.cs index a44721d4..09709d3f 100644 --- a/ProjectLighthouse/Helpers/GameVersionHelper.cs +++ b/ProjectLighthouse/Helpers/GameVersionHelper.cs @@ -76,11 +76,17 @@ namespace LBPUnion.ProjectLighthouse.Helpers "CUSA01304", }; + public static readonly string[] LittleBigPlanetVitaTitleIds = + { + "PCSF00021", "PCSA00017", "PCSC00013", + }; + public static GameVersion FromTitleId(string titleId) { if (LittleBigPlanet1TitleIds.Contains(titleId)) return GameVersion.LittleBigPlanet1; if (LittleBigPlanet2TitleIds.Contains(titleId)) return GameVersion.LittleBigPlanet2; if (LittleBigPlanet3TitleIds.Contains(titleId)) return GameVersion.LittleBigPlanet3; + if (LittleBigPlanetVitaTitleIds.Contains(titleId)) return GameVersion.LittleBigPlanetVita; return GameVersion.LittleBigPlanet1; } diff --git a/ProjectLighthouse/Types/GameVersion.cs b/ProjectLighthouse/Types/GameVersion.cs index c9048f88..7200527e 100644 --- a/ProjectLighthouse/Types/GameVersion.cs +++ b/ProjectLighthouse/Types/GameVersion.cs @@ -5,6 +5,7 @@ namespace LBPUnion.ProjectLighthouse.Types LittleBigPlanet1 = 0, LittleBigPlanet2 = 1, LittleBigPlanet3 = 2, - Unknown = 3, + LittleBigPlanetVita = 1, + Unknown = -1, } } \ No newline at end of file