WIP implementing TZX support

This commit is contained in:
2026-04-30 17:43:20 +01:00
parent 5c7ccc02ff
commit bf3d7d228a
5 changed files with 101 additions and 0 deletions

View File

@@ -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);
}
}
}
}