mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-15 00:37:11 +00:00
add gen2 unofficial vc size
This commit is contained in:
parent
d91c6a0727
commit
26986ff22b
1 changed files with 2 additions and 1 deletions
|
@ -28,6 +28,7 @@ namespace PKHeX
|
|||
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 @@ namespace PKHeX
|
|||
/// <returns>Version Identifier or Invalid if type cannot be determined.</returns>
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue