1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-07-06 01:28:57 +00:00

Made an attempt not to interrogate files that definitely don't have the normal header.

This commit is contained in:
Thomas Harte 2017-08-11 16:34:29 -04:00
parent a12671010a
commit 44dace2eef

View File

@ -38,7 +38,7 @@ static void InspectDataCatalogue(
for(size_t c = 0; c < data_catalogue->files.size(); c++) {
// Check for whether this is [potentially] BASIC.
if(!((data_catalogue->files[c].data[18] >> 1) & 7)) {
if(data_catalogue->files[c].data.size() >= 128 && !((data_catalogue->files[c].data[18] >> 1) & 7)) {
basic_files++;
last_basic_file = c;
}