1
0
mirror of https://github.com/TomHarte/CLK.git synced 2025-04-06 10:38:16 +00:00

Retain tapes and disks.

This commit is contained in:
Thomas Harte 2025-01-20 15:51:01 -05:00
parent 55d59a1854
commit 1e9ddada37

View File

@ -293,6 +293,8 @@ std::unique_ptr<Analyser::Static::Target> get_target<TargetPlatform::Plus4>(
if(!files.files.empty()) {
target->loading_command = loading_command(files);
}
target->media.disks = media.disks;
target->media.tapes = media.tapes;
}
// Attach a 1541 if there are any disks here.
@ -321,8 +323,10 @@ std::unique_ptr<Analyser::Static::Target> get_target<TargetPlatform::Vic20>(
target->media = media;
set_loading_command(*target);
} else {
// Strip out inappropriate cartridges.
// Strip out inappropriate cartridges but retain all tapes and disks.
target->media.cartridges = Vic20CartridgesFrom(media.cartridges);
target->media.disks = media.disks;
target->media.tapes = media.tapes;
}
for(const auto &file : files.files) {