public static void SdCardFromFile(this Machine machine, string file, IPeripheralRegister <ISDDevice, NullRegistrationPoint> attachTo, bool persistent = true, long?size = null) { var card = new SDCard(file, size, persistent); attachTo.Register(card, NullRegistrationPoint.Instance); machine.SetLocalName(card, String.Format("SD card: {0}", file)); }
public static void SdCardFromFile(this Machine machine, string file, IPeripheralRegister<ISDDevice, NullRegistrationPoint> attachTo, bool persistent = true, long? size = null) { var card = new SDCard(file, size, persistent); attachTo.Register(card, NullRegistrationPoint.Instance); machine.SetLocalName(card, String.Format("SD card: {0}", file)); }