openMSX
DiskFactory.hh
Go to the documentation of this file.
1 #ifndef DISKFACTORY_HH
2 #define DISKFACTORY_HH
3 
4 #include "DirAsDSK.hh"
5 #include "EnumSetting.hh"
6 #include <string>
7 
8 namespace openmsx {
9 
10 class Reactor;
11 class DiskChanger;
12 class Disk;
13 
15 {
16 public:
17  explicit DiskFactory(Reactor& reactor);
18  std::unique_ptr<Disk> createDisk(
19  const std::string& diskImage, DiskChanger& diskChanger);
20 
21 private:
22  Reactor& reactor;
23  EnumSetting<DirAsDSK::SyncMode> syncDirAsDSKSetting;
24  EnumSetting<DirAsDSK::BootSectorType> bootSectorSetting;
25 };
26 
27 } // namespace openmsx
28 
29 #endif // DISKFACTORY_HH
Contains the main loop of openMSX.
Definition: Reactor.hh:66
Thanks to enen for testing this on a real cartridge:
Definition: Autofire.cc:5
DiskFactory(Reactor &reactor)
Definition: DiskFactory.cc:19
std::unique_ptr< Disk > createDisk(const std::string &diskImage, DiskChanger &diskChanger)
Definition: DiskFactory.cc:36