Ejemplo n.º 1
0
        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));
        }
Ejemplo n.º 2
0
 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));
 }