Пример #1
0
        public void ApplyFastestText()
        {
            switch (RomHandler)
            {
            case Gen5RomHandler gen5:
                byte[] patch;

                switch (gen5.Game.GameKind)
                {
                case GameEnum.Black2:
                    patch = Resources.b2_instant_text;
                    break;

                case GameEnum.White2:
                    patch = Resources.w2_instant_text;
                    break;

                case GameEnum.Black:
                    patch = Resources.b1_instant_text;
                    break;

                case GameEnum.White:
                    patch = Resources.w1_instant_text;
                    break;

                default:
                    throw new ArgumentOutOfRangeException(nameof(gen5.Game), gen5.Game, null);
                }

                FileFunctions.ApplyPatch(gen5.Arm9, patch);
                break;
            }
        }