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:
@@ -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))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user