示例#1
0
 public static bool IsStadium(byte[] data)
 {
     if (data.Length != SaveUtil.SIZE_G2STAD)
     {
         return(false);
     }
     return(StadiumUtil.IsMagicPresentEither(data, TeamSize, MAGIC_FOOTER));
 }
示例#2
0
 public static bool IsStadium(ReadOnlySpan <byte> data)
 {
     if (data.Length != SaveUtil.SIZE_G1STADJ)
     {
         return(false);
     }
     return(StadiumUtil.IsMagicPresentEither(data, TeamSizeJ, FOOTER_MAGIC));
 }
示例#3
0
 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));
 }
示例#4
0
 public SAV2Stadium(byte[] data, bool japanese) : base(data, japanese, StadiumUtil.IsMagicPresentSwap(data, TeamSize, MAGIC_FOOTER))
 {
     Box = BoxStart;
 }
示例#5
0
 // Check Box 1's footer magic.
 private static bool IsStadiumJ(byte[] data) => StadiumUtil.IsMagicPresentAbsolute(data, BoxStart + BoxSizeJ - ListFooterSize, MAGIC_FOOTER);
示例#6
0
 public SAV1StadiumJ(byte[] data) : base(data, true, StadiumUtil.IsMagicPresentSwap(data, TeamSizeJ, FOOTER_MAGIC))
 {
     Box = 0x2500;
 }
示例#7
0
 public SAV1Stadium(byte[] data, bool japanese) : base(data, japanese, StadiumUtil.IsMagicPresentSwap(data, japanese ? TeamSizeJ : TeamSizeU, FOOTER_MAGIC))
 {
     Box = 0xC000;
 }