public static byte[] GetPokeCommand(ulong offset, byte[] data, RWMethod method, bool usb) { switch (method) { case RWMethod.Heap when !usb: return(SwitchCommand.Poke((uint)offset, data)); case RWMethod.Heap when usb: return(SwitchCommand.PokeRaw((uint)offset, data)); case RWMethod.Main: return(SwitchCommand.PokeMain(offset, data)); case RWMethod.Absolute: return(SwitchCommand.PokeAbsolute(offset, data)); default: return(SwitchCommand.Poke((uint)offset, data)); } }