mirror of
https://github.com/TomHarte/CLK.git
synced 2024-12-26 09:29:45 +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:
parent
f2a6bcf2a8
commit
87ee8450fe
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user