WIP implementing TZX support
This commit is contained in:
@@ -392,6 +392,14 @@ namespace Desktop
|
||||
{
|
||||
_machine.LoadSnapshot(fileBytes);
|
||||
}
|
||||
else if (resourceName.EndsWith(".tzx", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
// 1. Pass the raw bytes to our static parser
|
||||
List<TzxBlock> tzxBlocks = TzxParser.Parse(fileBytes);
|
||||
|
||||
// 2. Hand the cleanly parsed blocks over to the Tape Deck
|
||||
_machine.TapeDeck.LoadTzxData(tzxBlocks);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user