OXYGENHUB
◆ main openmsx / src / FirmwareSwitch.hh
400 B · C++ · last changed chore(): initial commit 1 month ago source blame history raw
1
#ifndef FRONTSWITCH_HH
2
#define FRONTSWITCH_HH
3
4
#include "BooleanSetting.hh"
5
#include "DeviceConfig.hh"
6
7
namespace openmsx {
8
9
class FirmwareSwitch
10
{
11
public:
12
	explicit FirmwareSwitch(const DeviceConfig& config);
13
	~FirmwareSwitch();
14
15
	[[nodiscard]] bool getStatus() const { return setting.getBoolean(); }
16
17
private:
18
	const DeviceConfig config;
19
	BooleanSetting setting;
20
};
21
22
} // namespace openmsx
23
24
#endif