From bfe297052ddc032fe6ccab66e3f42916265eaea5 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Fri, 11 Aug 2017 18:59:38 -0400 Subject: [PATCH] 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. --- StaticAnalyser/AmstradCPC/StaticAnalyser.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/StaticAnalyser/AmstradCPC/StaticAnalyser.cpp b/StaticAnalyser/AmstradCPC/StaticAnalyser.cpp index 676bc729e..da34bfabe 100644 --- a/StaticAnalyser/AmstradCPC/StaticAnalyser.cpp +++ b/StaticAnalyser/AmstradCPC/StaticAnalyser.cpp @@ -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++;