diff options
Diffstat (limited to 'src/mame/drivers/sangho.cpp')
-rw-r--r-- | src/mame/drivers/sangho.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mame/drivers/sangho.cpp b/src/mame/drivers/sangho.cpp index c657e41c82c..8482572363f 100644 --- a/src/mame/drivers/sangho.cpp +++ b/src/mame/drivers/sangho.cpp @@ -94,8 +94,8 @@ public: DECLARE_WRITE8_MEMBER(sexyboom_bank_w); void init_pzlestar(); virtual void machine_start() override; - void machine_reset_pzlestar(); - void machine_reset_sexyboom(); + DECLARE_MACHINE_RESET(pzlestar); + DECLARE_MACHINE_RESET(sexyboom); void pzlestar_map_banks(); void sexyboom_map_bank(int bank); DECLARE_READ8_MEMBER(sec_slot_r); @@ -437,13 +437,13 @@ void sangho_state::machine_start() m_ram = std::make_unique<uint8_t[]>(0x20000); // TODO: define how much RAM these ones have (MSX2+ can potentially go up to 4MB) } -void sangho_state::machine_reset_pzlestar() +MACHINE_RESET_MEMBER(sangho_state,pzlestar) { m_pzlestar_mem_bank = 2; pzlestar_map_banks(); } -void sangho_state::machine_reset_sexyboom() +MACHINE_RESET_MEMBER(sangho_state,sexyboom) { m_sexyboom_bank[0] = 0x00; m_sexyboom_bank[1] = 0x00; @@ -470,7 +470,7 @@ MACHINE_CONFIG_START(sangho_state::pzlestar) MCFG_V99X8_INTERRUPT_CALLBACK(INPUTLINE("maincpu", 0)) MCFG_V99X8_SCREEN_ADD_NTSC("screen", "v9958", XTAL(21'477'272)) - set_machine_reset_cb(config, driver_callback_delegate(&machine_reset_pzlestar, this)); + MCFG_MACHINE_RESET_OVERRIDE(sangho_state,pzlestar) SPEAKER(config, "mono").front_center(); MCFG_DEVICE_ADD("ymsnd", YM2413, XTAL(21'477'272)/6) @@ -489,7 +489,7 @@ MACHINE_CONFIG_START(sangho_state::sexyboom) MCFG_V99X8_INTERRUPT_CALLBACK(INPUTLINE("maincpu", 0)) MCFG_V99X8_SCREEN_ADD_NTSC("screen", "v9958", XTAL(21'477'272)) - set_machine_reset_cb(config, driver_callback_delegate(&machine_reset_sexyboom, this)); + MCFG_MACHINE_RESET_OVERRIDE(sangho_state,sexyboom) MCFG_PALETTE_ADD("palette", 19780) |