PKHeX.SAV_SecretBase.popFavorite C# (CSharp) Method

popFavorite() private method

private popFavorite ( ) : void
return void
        private void popFavorite()
        {
            LB_Favorite.Items.Clear();

            const int playeroff = fav_offset + 0x5400 + 0x326;
            const int favoff = fav_offset + 0x5400 + 0x63A;
            string OT = Util.TrimFromZero(Encoding.Unicode.GetString(sav, sv + playeroff + 0x218, 0x1A));
            LB_Favorite.Items.Add("* " + OT);
            for (int i = 0; i < 30; i++)
            {
                string BaseTrainer = Util.TrimFromZero(Encoding.Unicode.GetString(sav, sv + favoff + i * 0x3E0 + 0x218, 0x1A));
                if (BaseTrainer.Length < 1 || BaseTrainer[0] == '\0')
                    BaseTrainer = "Empty";
                LB_Favorite.Items.Add(i + " " + BaseTrainer);
            }
        }
        private void B_SAV2FAV(object sender, EventArgs e)