mirror of
https://github.com/livingcomputermuseum/ContrAlto.git
synced 2026-04-15 16:10:30 +00:00
Finished up configuration UI. Config is now persisted to a configuration file. Small fixes to UDP encapsulation to ignore packets coming from the same host. Small fix for PInvoke for high res timer.
This commit is contained in:
@@ -65,10 +65,7 @@ namespace Contralto
|
||||
_cpu.Reset();
|
||||
_ethernetController.Reset();
|
||||
|
||||
UCodeMemory.Reset();
|
||||
|
||||
// Force the boot keys on reset.
|
||||
PressBootKeys();
|
||||
UCodeMemory.Reset();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -126,18 +123,20 @@ namespace Contralto
|
||||
_diskController.Drives[drive].UnloadPack();
|
||||
}
|
||||
|
||||
public void PressBootKeys()
|
||||
public void PressBootKeys(AlternateBootType bootType)
|
||||
{
|
||||
//
|
||||
// Press bootkeys if the user has specified a boot combination.
|
||||
//
|
||||
if (Configuration.EthernetBootEnabled)
|
||||
switch(bootType)
|
||||
{
|
||||
_keyboard.PressBootKeys(Configuration.BootAddress, true);
|
||||
case AlternateBootType.Disk:
|
||||
_keyboard.PressBootKeys(Configuration.BootAddress, false);
|
||||
break;
|
||||
|
||||
case AlternateBootType.Ethernet:
|
||||
_keyboard.PressBootKeys(Configuration.BootFile, true);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public AltoCPU CPU
|
||||
{
|
||||
get { return _cpu; }
|
||||
|
||||
Reference in New Issue
Block a user