/// <summary>Checks to see if the data belongs to a Gen4 Battle Revolution save</summary> /// <param name="data">Save data of which to determine the type</param> /// <returns>Version Identifier or Invalid if type cannot be determined.</returns> internal static GameVersion GetIsG4BRSAV(byte[] data) { if (data.Length != SIZE_G4BR) return Invalid; byte[] sav = SAV4BR.DecryptPBRSaveData(data); return SAV4BR.IsChecksumsValid(sav) ? BATREV : Invalid; }
/// <summary>Checks to see if the data belongs to a Gen4 Battle Revolution save</summary> /// <param name="data">Save data of which to determine the type</param> /// <returns>Version Identifier or Invalid if type cannot be determined.</returns> internal static GameVersion GetIsG4BRSAV(byte[] data) { if (data.Length != SIZE_G4BR) { return(GameVersion.Invalid); } byte[] sav = SAV4BR.DecryptPBRSaveData(data); return(SAV4BR.IsChecksumsValid(sav) ? GameVersion.BATREV : GameVersion.Invalid); }