1
0
mirror of https://github.com/livingcomputermuseum/ContrAlto.git synced 2026-01-25 19:55:57 +00:00

Small tweaks to display controller in low-res mode; added support for Diablo 44 disks, added ST-76 on Diablo 44.

This commit is contained in:
Josh Dersch
2016-03-16 17:07:57 -07:00
parent dc0a85aed8
commit 2c99250ded
14 changed files with 229 additions and 50 deletions

View File

@@ -47,7 +47,7 @@ namespace Contralto
t.AutoReset = true;
t.Interval = 1000;
t.Elapsed += T_Elapsed;
t.Start();
//t.Start();
}
public void Reset()
@@ -102,7 +102,24 @@ namespace Contralto
{
throw new InvalidOperationException("drive must be 0 or 1.");
}
DiabloPack newPack = new DiabloPack(DiabloDiskType.Diablo31);
DiabloDiskType type;
//
// We select the disk type based on the file extension. Very elegant.
//
switch(Path.GetExtension(path).ToLowerInvariant())
{
case ".dsk44":
type = DiabloDiskType.Diablo44;
break;
default:
type = DiabloDiskType.Diablo31;
break;
}
DiabloPack newPack = new DiabloPack(type);
using (FileStream fs = new FileStream(path, FileMode.Open, FileAccess.Read))
{