private void ReloadBattleTeams() { var demo = this is SAV7SM && Data.Skip(PCLayout).Take(0x4C4).All(z => z == 0); // up to Battle Box values if (demo || !Exportable) { BoxLayout.ClearBattleTeams(); } else // Valid slot locking info present { BoxLayout.LoadBattleTeams(); } }
protected void ReloadBattleTeams() { var demo = this is SAV7SM && Data.IsRangeAll((byte)0, BoxLayout.Offset, 0x4C4); // up to Battle Box values if (demo || !Exportable) { BoxLayout.ClearBattleTeams(); } else // Valid slot locking info present { BoxLayout.LoadBattleTeams(); } }
protected void ReloadBattleTeams() { var demo = this is SAV7SM && new ReadOnlySpan <byte>(Data, BoxLayout.Offset, 0x4C4).IsRangeEmpty(); // up to Battle Box values if (demo || !State.Exportable) { BoxLayout.ClearBattleTeams(); } else // Valid slot locking info present { BoxLayout.LoadBattleTeams(); } }