コード例 #1
0
        public static byte[] GetPeekCommand(ulong offset, int count, RWMethod method, bool usb)
        {
            switch (method)
            {
            case RWMethod.Heap when !usb: return(SwitchCommand.Peek((uint)offset, count));

            case RWMethod.Heap when usb: return(SwitchCommand.PeekRaw((uint)offset, count));

            case RWMethod.Main: return(SwitchCommand.PeekMain(offset, count));

            case RWMethod.Absolute: return(SwitchCommand.PeekAbsolute(offset, count));

            default: return(SwitchCommand.Peek((uint)offset, count));
            }
        }