1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-12-26 09:29:45 +00:00

Supplied disks are given to the Microdisc.

This commit is contained in:
Thomas Harte 2016-11-25 20:53:38 +08:00
parent 4af678d2ed
commit 8be81f6ebd

View File

@ -48,6 +48,13 @@ void Machine::configure_as_target(const StaticAnalyser::Target &target)
microdisc_.set_delegate(this);
}
int drive_index = 0;
for(auto disk : target.disks)
{
if(drive_index < 4) microdisc_.set_disk(disk, drive_index);
drive_index++;
}
if(target.oric.use_atmos_rom)
{
memcpy(rom_, basic11_rom_.data(), std::min(basic11_rom_.size(), sizeof(rom_)));