1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-09-27 18:55:48 +00:00

Add note to self.

This commit is contained in:
Thomas Harte 2021-03-07 21:21:58 -05:00
parent f985248902
commit 4eaf3440bd

View File

@ -111,6 +111,11 @@ std::optional<Header> Parser::find_header(const std::shared_ptr<Storage::Tape::T
// Read market byte.
const auto type = get_byte(tape);
if(!type) return std::nullopt;
// TODO: possibly 0x00 is just the Spectrum's preferred identifier; a CPC reference
// suggests it might be 0x16 for data, 0x2c for a header on that platform.
//
// Which would be fantastic for automatically recognising tapes. But we'll see.
if(*type != 0x00) return std::nullopt;
reset_checksum();