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

DFS disks are now delivered right up to the emulator's front door. So everything's in place to get started on that WD1770 nonsense.

This commit is contained in:
Thomas Harte 2016-09-19 08:29:23 -04:00
parent e025768604
commit c9dd07cecd
2 changed files with 12 additions and 2 deletions

View File

@ -143,6 +143,8 @@
<string>Electron/BBC Disk Image</string>
<key>CFBundleTypeRole</key>
<string>Viewer</string>
<key>NSDocumentClass</key>
<string>$(PRODUCT_MODULE_NAME).ElectronDocument</string>
</dict>
</array>
<key>CFBundleExecutable</key>

View File

@ -67,6 +67,8 @@ void StaticAnalyser::Acorn::AddTargets(
Target target;
target.machine = Target::Electron;
target.probability = 1.0; // TODO: a proper estimation
target.acorn.has_dfs = false;
target.acorn.has_adfs = false;
// strip out inappropriate cartridges
target.cartridges = AcornCartridgesFrom(cartridges);
@ -111,13 +113,19 @@ void StaticAnalyser::Acorn::AddTargets(
}
}
// TODO: disks
if(disks.size() > 0)
{
std::shared_ptr<Storage::Disk::Disk> disk = disks.front();
std::unique_ptr<Catalogue> dfs_catalogue = GetDFSCatalogue(disk);
if(dfs_catalogue)
{
target.disks = disks;
target.acorn.has_dfs = true;
// TODO: what about booting?
}
}
if(target.tapes.size() || target.cartridges.size())
if(target.tapes.size() || target.disks.size() || target.cartridges.size())
destination.push_back(target);
}