fix crash, but what a terrible hack this is in the first place (nw)

This commit is contained in:
David Haywood 2015-12-10 23:26:44 +00:00
parent 7301a01524
commit 2e47a293dd

View File

@ -468,8 +468,8 @@ WRITE8_MEMBER(nes_exrom_device::write_l)
if ((offset >= 0x1000) && (offset <= 0x1015))
{
// SOUND
nesapu_device *m_sound = machine().device<nesapu_device>("maincpu::nessound");
// SOUND (this is a hack, it should have extra channels, not pass to the existing APU!!!)
nesapu_device *m_sound = machine().device<nesapu_device>("maincpu:nesapu");
m_sound->write(space, offset & 0x1f, data);
return;
}