summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/gameboy/mbc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/gameboy/mbc.cpp')
-rw-r--r--src/devices/bus/gameboy/mbc.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/devices/bus/gameboy/mbc.cpp b/src/devices/bus/gameboy/mbc.cpp
index bd57a4da23b..bb052f9be57 100644
--- a/src/devices/bus/gameboy/mbc.cpp
+++ b/src/devices/bus/gameboy/mbc.cpp
@@ -71,6 +71,7 @@ gb_rom_mbc3_device::gb_rom_mbc3_device(const machine_config &mconfig, const char
gb_rom_mbc5_device::gb_rom_mbc5_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock)
: gb_rom_mbc_device(mconfig, type, tag, owner, clock)
+ , m_rumble(*this, "Rumble")
{
}
@@ -581,7 +582,7 @@ void gb_rom_mbc5_device::write_bank(offs_t offset, uint8_t data)
data &= 0x0f;
if (has_rumble)
{
- machine().output().set_value("Rumble", BIT(data, 3));
+ m_rumble = BIT(data, 3);
data &= 0x7;
}
m_ram_bank = data;