1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-23 03:32:32 +00:00

Picked up another subtlety: disk names may be outside of the ones a user could type, in which case they definitely don't affect the decision.

This commit is contained in:
Thomas Harte 2017-08-11 18:59:38 -04:00
parent ffb1a14ace
commit bfe297052d

View File

@ -39,6 +39,10 @@ static void InspectDataCatalogue(
size_t last_implicit_suffixed_file = 0;
for(size_t c = 0; c < data_catalogue->files.size(); c++) {
// Files with nothing but spaces in their name can't be loaded by the user, so disregard them.
if(data_catalogue->files[c].type == " " && data_catalogue->files[c].name == " ")
continue;
// Check for whether this is [potentially] BASIC.
if(data_catalogue->files[c].data.size() >= 128 && !((data_catalogue->files[c].data[18] >> 1) & 7)) {
basic_files++;