public long Invoke(GckGeckoU gecko, params int[] args) { if (Address == 0) { throw new GckException("Invalid function address."); } return(gecko.RemoteProcedureCall(Address, args)); }
static void Main(string[] args) { Console.Write("Wii U's IPv4> "); string ip_addr = Console.ReadLine(); GckGeckoU gck = new GckGeckoU(); Console.WriteLine("Connecting tcpgecko server..."); gck.Connect(ip_addr); Console.WriteLine("Connected!"); Console.WriteLine("Sending codes..."); gck.SendCodes( new CCWriteMemory(0x1004F71C, 0, ValueSize.UInt8) //Home Button Menu Anywhere [Macopride64]) ); Console.WriteLine("Sent!"); Console.WriteLine("You can use the Home Menu in anywhere."); Console.ReadKey(false); }