OXYGENHUB
◆ main openmsx / src / MSXSwitchedDevice.cc
415 B · C++ · last changed chore(): initial commit 1 month ago source blame history raw
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
} // namespace openmsx