summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/cabal.cpp
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2018-05-16 21:56:39 +1000
committer Vas Crabb <vas@vastheman.com>2018-05-16 21:56:39 +1000
commit166638ce8093e04884166296469bda82882890fd (patch)
tree6dedcf3bde5d05843695efaf4949ab285d3193f1 /src/mame/drivers/cabal.cpp
parent8e796a2075415427491a541b75884aea6e21f6a9 (diff)
Revert "- Removed MACHINE/SOUND/VIDEO _START/_RESET macros. This has the side effect of making machine-config overrides of these much"
This reverts commit c83e2a853d4e1643fcc85b68ada3c6f7f33adea4. Revert "fix compile. (nw)" This reverts commit a259ba3e366f442a22a9341755ff58163869860c. GCC is being bad and allowing invalid C++ that other compilers reject.
Diffstat (limited to 'src/mame/drivers/cabal.cpp')
-rw-r--r--src/mame/drivers/cabal.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mame/drivers/cabal.cpp b/src/mame/drivers/cabal.cpp
index a8503dba9af..54627c02063 100644
--- a/src/mame/drivers/cabal.cpp
+++ b/src/mame/drivers/cabal.cpp
@@ -56,13 +56,13 @@ Dip locations verified with Fabtek manual for the trackball version
#include "speaker.h"
-void cabal_state::machine_start_cabalbl()
+MACHINE_START_MEMBER(cabal_state,cabalbl)
{
save_item(NAME(m_sound_command1));
save_item(NAME(m_sound_command2));
}
-void cabal_state::machine_reset_cabalbl()
+MACHINE_RESET_MEMBER(cabal_state,cabalbl)
{
m_sound_command1 = m_sound_command2 = 0xff;
}
@@ -595,8 +595,8 @@ MACHINE_CONFIG_START(cabal_state::cabalbl)
MCFG_QUANTUM_TIME(attotime::from_hz(600))
- set_machine_start_cb(config, driver_callback_delegate(&machine_start_cabalbl, this));
- set_machine_reset_cb(config, driver_callback_delegate(&machine_reset_cabalbl, this));
+ MCFG_MACHINE_START_OVERRIDE(cabal_state,cabalbl)
+ MCFG_MACHINE_RESET_OVERRIDE(cabal_state,cabalbl)
/* video hardware */
MCFG_SCREEN_ADD("screen", RASTER)