1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-25 16:31:42 +00:00

Minor rejig: it's much more likely that something that can't be distinguished is a ZX81 program. TODO: some sort of BASIC token parsing, to be more confident.

This commit is contained in:
Thomas Harte 2017-06-22 20:23:14 -04:00
parent f2a6bcf2a8
commit 87ee8450fe

View File

@ -86,9 +86,9 @@ static std::shared_ptr<File> ZX81FileFromData(const std::vector<uint8_t> &data)
}
std::shared_ptr<File> Storage::Data::ZX8081::FileFromData(const std::vector<uint8_t> &data) {
std::shared_ptr<Storage::Data::ZX8081::File> result = ZX80FileFromData(data);
std::shared_ptr<Storage::Data::ZX8081::File> result = ZX81FileFromData(data);
if(result) return result;
return ZX81FileFromData(data);
return ZX80FileFromData(data);
}
#pragma mark - String conversion