| e8555c89 Andy McCall |
1 |
#include "MSXSwitchedDevice.hh" |
| 2 |
|
| 3 |
#include "MSXDeviceSwitch.hh" |
| 4 |
#include "MSXMotherBoard.hh" |
| 5 |
|
| 6 |
namespace openmsx { |
| 7 |
|
| 8 |
MSXSwitchedDevice::MSXSwitchedDevice(MSXMotherBoard& motherBoard_, uint8_t id_) |
| 9 |
: motherBoard(motherBoard_), id(id_) |
| 10 |
{ |
| 11 |
motherBoard.getDeviceSwitch().registerDevice(id, this); |
| 12 |
} |
| 13 |
|
| 14 |
MSXSwitchedDevice::~MSXSwitchedDevice() |
| 15 |
{ |
| 16 |
motherBoard.getDeviceSwitch().unregisterDevice(id); |
| 17 |
} |
| 18 |
|
| 19 |
} |