public static bool IsStadium(byte[] data) { if (data.Length != SaveUtil.SIZE_G2STAD) { return(false); } return(StadiumUtil.IsMagicPresentEither(data, TeamSize, MAGIC_FOOTER)); }
public static bool IsStadium(ReadOnlySpan <byte> data) { if (data.Length != SaveUtil.SIZE_G1STADJ) { return(false); } return(StadiumUtil.IsMagicPresentEither(data, TeamSizeJ, FOOTER_MAGIC)); }
public static bool IsStadium(ReadOnlySpan <byte> data) { if (data.Length is not(SaveUtil.SIZE_G2STAD or SaveUtil.SIZE_G2STADF)) { return(false); } return(StadiumUtil.IsMagicPresentEither(data, TeamSize, MAGIC_FOOTER)); }
public SAV2Stadium(byte[] data, bool japanese) : base(data, japanese, StadiumUtil.IsMagicPresentSwap(data, TeamSize, MAGIC_FOOTER)) { Box = BoxStart; }
// Check Box 1's footer magic. private static bool IsStadiumJ(byte[] data) => StadiumUtil.IsMagicPresentAbsolute(data, BoxStart + BoxSizeJ - ListFooterSize, MAGIC_FOOTER);
public SAV1StadiumJ(byte[] data) : base(data, true, StadiumUtil.IsMagicPresentSwap(data, TeamSizeJ, FOOTER_MAGIC)) { Box = 0x2500; }
public SAV1Stadium(byte[] data, bool japanese) : base(data, japanese, StadiumUtil.IsMagicPresentSwap(data, japanese ? TeamSizeJ : TeamSizeU, FOOTER_MAGIC)) { Box = 0xC000; }