static void edlink(string[] args) { edio = new Edio(); usb = new Usbio(edio); Console.WriteLine("EverDrive found at " + edio.PortName); Console.WriteLine("EDIO status: " + edio.getStatus().ToString("X4")); Console.WriteLine(""); bool force_app_mode = true; for (int i = 0; i < args.Length; i++) { if (args[i].Equals("-appmode")) { force_app_mode = false; } if (args[i].Equals("-sermode")) { force_app_mode = false; } } if (force_app_mode) { edio.exitServiceMode(); } if (args.Length == 0) { edio.getConfig().printFull(); Console.WriteLine(""); printState(); Console.WriteLine(""); edio.getPort().Close(); Console.WriteLine("Press any key"); Console.ReadKey(); return; } cmdProcessor(args); }
static void loadROM(string rom_path, string map_path) { Console.WriteLine("ROM loading..."); NesRom rom = new NesRom(rom_path); rom.print(); if (rom.Type == NesRom.ROM_TYPE_OS) { usb.loadOS(rom, map_path); } else { usb.loadGame(rom, map_path); } Console.WriteLine(); edio.getConfig().print(); }