From 44513d6912791ac879178925fcbb4cc1839d929e Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Sun, 8 Apr 2018 17:37:39 -0400 Subject: [PATCH] Ensures a 1540 is requested if any disks are present. --- Analyser/Static/Commodore/StaticAnalyser.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Analyser/Static/Commodore/StaticAnalyser.cpp b/Analyser/Static/Commodore/StaticAnalyser.cpp index 5a5f41c78..ac846bc76 100644 --- a/Analyser/Static/Commodore/StaticAnalyser.cpp +++ b/Analyser/Static/Commodore/StaticAnalyser.cpp @@ -149,6 +149,9 @@ void Analyser::Static::Commodore::AddTargets(const Media &media, std::vectorregion = Analyser::Static::Commodore::Target::Region::American; } + // Attach a 1540 if there are any disks here. + target->has_c1540 = !target->media.disks.empty(); + destination.push_back(std::move(target)); } }