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:
parent
e025768604
commit
c9dd07cecd
@ -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>
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user