summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/segaxbd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/segaxbd.cpp')
-rw-r--r--src/mame/drivers/segaxbd.cpp21
1 files changed, 12 insertions, 9 deletions
diff --git a/src/mame/drivers/segaxbd.cpp b/src/mame/drivers/segaxbd.cpp
index c33521f6361..986cbb1a5ee 100644
--- a/src/mame/drivers/segaxbd.cpp
+++ b/src/mame/drivers/segaxbd.cpp
@@ -262,12 +262,15 @@ ROMs:
#include "emu.h"
#include "includes/segaxbd.h"
+#include "includes/segaipt.h"
+
#include "machine/nvram.h"
#include "sound/ym2151.h"
#include "sound/segapcm.h"
-#include "includes/segaipt.h"
+#include "speaker.h"
+
-const device_type SEGA_XBD_PCB = &device_creator<segaxbd_state>;
+const device_type SEGA_XBD_PCB = device_creator<segaxbd_state>;
segaxbd_state::segaxbd_state(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock)
: device_t(mconfig, SEGA_XBD_PCB, "Sega X-Board PCB", tag, owner, clock, "segaxbd_pcb", __FILE__),
@@ -1866,7 +1869,7 @@ static MACHINE_CONFIG_FRAGMENT( xboard )
MCFG_SOUND_ROUTE(1, "rspeaker", 1.0)
MACHINE_CONFIG_END
-const device_type SEGA_XBD_REGULAR_DEVICE = &device_creator<segaxbd_regular_state>;
+const device_type SEGA_XBD_REGULAR_DEVICE = device_creator<segaxbd_regular_state>;
segaxbd_regular_state::segaxbd_regular_state(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock)
: segaxbd_state(mconfig, tag, owner, clock)
@@ -1892,7 +1895,7 @@ static MACHINE_CONFIG_FRAGMENT( xboard_fd1094 )
MCFG_CPU_DECRYPTED_OPCODES_MAP(decrypted_opcodes_map)
MACHINE_CONFIG_END
-const device_type SEGA_XBD_FD1094_DEVICE = &device_creator<segaxbd_fd1094_state>;
+const device_type SEGA_XBD_FD1094_DEVICE = device_creator<segaxbd_fd1094_state>;
segaxbd_fd1094_state::segaxbd_fd1094_state(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock)
: segaxbd_state(mconfig, tag, owner, clock)
@@ -1934,7 +1937,7 @@ static MACHINE_CONFIG_FRAGMENT( lastsurv_fd1094 )
MCFG_SOUND_ROUTE(1, "lspeaker", 0.43)
MACHINE_CONFIG_END
-const device_type SEGA_XBD_LASTSURV_FD1094_DEVICE = &device_creator<segaxbd_lastsurv_fd1094_state>;
+const device_type SEGA_XBD_LASTSURV_FD1094_DEVICE = device_creator<segaxbd_lastsurv_fd1094_state>;
segaxbd_lastsurv_fd1094_state::segaxbd_lastsurv_fd1094_state(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock)
: segaxbd_state(mconfig, tag, owner, clock)
@@ -1964,7 +1967,7 @@ static MACHINE_CONFIG_FRAGMENT( lastsurv )
MCFG_SOUND_ROUTE(1, "lspeaker", 0.43)
MACHINE_CONFIG_END
-const device_type SEGA_XBD_LASTSURV_DEVICE = &device_creator<segaxbd_lastsurv_state>;
+const device_type SEGA_XBD_LASTSURV_DEVICE = device_creator<segaxbd_lastsurv_state>;
segaxbd_lastsurv_state::segaxbd_lastsurv_state(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock)
: segaxbd_state(mconfig, tag, owner, clock)
@@ -2007,7 +2010,7 @@ static MACHINE_CONFIG_FRAGMENT( smgp_fd1094 )
MCFG_SOUND_ROUTE(1, "rearright", 1.0)
MACHINE_CONFIG_END
-const device_type SEGA_XBD_SMGP_FD1094_DEVICE = &device_creator<segaxbd_smgp_fd1094_state>;
+const device_type SEGA_XBD_SMGP_FD1094_DEVICE = device_creator<segaxbd_smgp_fd1094_state>;
segaxbd_smgp_fd1094_state::segaxbd_smgp_fd1094_state(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock)
: segaxbd_state(mconfig, tag, owner, clock)
@@ -2050,7 +2053,7 @@ static MACHINE_CONFIG_FRAGMENT( smgp )
MCFG_SOUND_ROUTE(1, "rearright", 1.0)
MACHINE_CONFIG_END
-const device_type SEGA_XBD_SMGP_DEVICE = &device_creator<segaxbd_smgp_state>;
+const device_type SEGA_XBD_SMGP_DEVICE = device_creator<segaxbd_smgp_state>;
segaxbd_smgp_state::segaxbd_smgp_state(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock)
: segaxbd_state(mconfig, tag, owner, clock)
@@ -2076,7 +2079,7 @@ static MACHINE_CONFIG_FRAGMENT( rascot )
MCFG_CPU_IO_MAP(rascot_z80_portmap)
MACHINE_CONFIG_END
-const device_type SEGA_XBD_RASCOT_DEVICE = &device_creator<segaxbd_rascot_state>;
+const device_type SEGA_XBD_RASCOT_DEVICE = device_creator<segaxbd_rascot_state>;
segaxbd_rascot_state::segaxbd_rascot_state(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock)
: segaxbd_state(mconfig, tag, owner, clock)