From 26986ff22bcbf68e82c84eeef15258777329e685 Mon Sep 17 00:00:00 2001 From: Kurt Date: Mon, 19 Dec 2016 11:47:24 -0800 Subject: [PATCH] add gen2 unofficial vc size --- PKHeX/Saves/SaveUtil.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PKHeX/Saves/SaveUtil.cs b/PKHeX/Saves/SaveUtil.cs index c6c4e1b7a..2884367ce 100644 --- a/PKHeX/Saves/SaveUtil.cs +++ b/PKHeX/Saves/SaveUtil.cs @@ -28,6 +28,7 @@ public static class SaveUtil internal const int SIZE_G3RAW = 0x20000; internal const int SIZE_G3RAWHALF = 0x10000; internal const int SIZE_G2RAW_U = 0x8000; + internal const int SIZE_G2VC = 0x8010; internal const int SIZE_G2BAT_U = 0x802C; internal const int SIZE_G2EMU = 0x8030; internal const int SIZE_G2RAW_J = 0x10000; @@ -117,7 +118,7 @@ public static bool getIsG1SAVJ(byte[] data) /// Version Identifier or Invalid if type cannot be determined. public static GameVersion getIsG2SAV(byte[] data) { - if (data.Length != SIZE_G2RAW_U && data.Length != SIZE_G2BAT_U && data.Length != SIZE_G2RAW_J && data.Length != SIZE_G2BAT_J && data.Length != SIZE_G2EMU) + if (new[] {SIZE_G2RAW_J, SIZE_G2RAW_U, SIZE_G2BAT_J, SIZE_G2BAT_U, SIZE_G2EMU, SIZE_G2VC}.Contains(data.Length)) return GameVersion.Invalid; // Check if it's not an american save or a japanese save