summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/neogeo/boot_kof2k2.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/neogeo/boot_kof2k2.cpp')
-rw-r--r--src/devices/bus/neogeo/boot_kof2k2.cpp39
1 files changed, 21 insertions, 18 deletions
diff --git a/src/devices/bus/neogeo/boot_kof2k2.cpp b/src/devices/bus/neogeo/boot_kof2k2.cpp
index 522f83e65aa..61876fd02f9 100644
--- a/src/devices/bus/neogeo/boot_kof2k2.cpp
+++ b/src/devices/bus/neogeo/boot_kof2k2.cpp
@@ -25,17 +25,17 @@ static MACHINE_CONFIG_FRAGMENT( kof2k2mp_cart )
MCFG_PCM2_PROT_ADD("pcm2_prot")
MACHINE_CONFIG_END
-machine_config_constructor neogeo_kof2002b_cart::device_mconfig_additions() const
+machine_config_constructor neogeo_kof2002b_cart_device::device_mconfig_additions() const
{
return MACHINE_CONFIG_NAME( kof2k2bl_cart );
}
-machine_config_constructor neogeo_kf2k2mp_cart::device_mconfig_additions() const
+machine_config_constructor neogeo_kf2k2mp_cart_device::device_mconfig_additions() const
{
return MACHINE_CONFIG_NAME( kof2k2mp_cart );
}
-machine_config_constructor neogeo_kf2k2mp2_cart::device_mconfig_additions() const
+machine_config_constructor neogeo_kf2k2mp2_cart_device::device_mconfig_additions() const
{
return MACHINE_CONFIG_NAME( kof2k2mp_cart );
}
@@ -44,17 +44,18 @@ machine_config_constructor neogeo_kf2k2mp2_cart::device_mconfig_additions() cons
kof2002b
**************************************************/
-const device_type NEOGEO_KOF2002B_CART = device_creator<neogeo_kof2002b_cart>;
+DEFINE_DEVICE_TYPE(NEOGEO_KOF2002B_CART, neogeo_kof2002b_cart_device, "neocart_kof2002b", "Neo Geo KoF 2002 Bootleg Cart")
-neogeo_kof2002b_cart::neogeo_kof2002b_cart(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) :
- neogeo_bootleg_cart(mconfig, NEOGEO_KOF2002B_CART, "Neo Geo KOF 2002 Bootleg Cart", tag, owner, clock, "neocart_kof2002b", __FILE__),
+neogeo_kof2002b_cart_device::neogeo_kof2002b_cart_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) :
+ neogeo_bootleg_cart_device(mconfig, NEOGEO_KOF2002B_CART, tag, owner, clock),
m_cmc_prot(*this, "cmc_prot"),
m_pcm2_prot(*this, "pcm2_prot"),
m_kof2k2_prot(*this, "kof2k2_prot")
-{}
+{
+}
-void neogeo_kof2002b_cart::decrypt_all(DECRYPT_ALL_PARAMS)
+void neogeo_kof2002b_cart_device::decrypt_all(DECRYPT_ALL_PARAMS)
{
m_kof2k2_prot->kof2002_decrypt_68k(cpuregion, cpuregion_size);
m_pcm2_prot->swap(ym_region, ym_region_size, 0);
@@ -67,16 +68,17 @@ void neogeo_kof2002b_cart::decrypt_all(DECRYPT_ALL_PARAMS)
kf2k2mp
**************************************************/
-const device_type NEOGEO_KF2K2MP_CART = device_creator<neogeo_kf2k2mp_cart>;
+DEFINE_DEVICE_TYPE(NEOGEO_KF2K2MP_CART, neogeo_kf2k2mp_cart_device, "neocart_kf2k2mp", "Neo Geo KoF 2002 MP Cart")
-neogeo_kf2k2mp_cart::neogeo_kf2k2mp_cart(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) :
- neogeo_bootleg_cart(mconfig, NEOGEO_KF2K2MP_CART, "Neo Geo KOF 2002 MP Cart", tag, owner, clock, "neocart_kf2k2mp", __FILE__),
+neogeo_kf2k2mp_cart_device::neogeo_kf2k2mp_cart_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) :
+ neogeo_bootleg_cart_device(mconfig, NEOGEO_KF2K2MP_CART, tag, owner, clock),
m_cmc_prot(*this, "cmc_prot"),
m_pcm2_prot(*this, "pcm2_prot")
-{}
+{
+}
-void neogeo_kf2k2mp_cart::decrypt_all(DECRYPT_ALL_PARAMS)
+void neogeo_kf2k2mp_cart_device::decrypt_all(DECRYPT_ALL_PARAMS)
{
m_prot->kf2k2mp_decrypt(cpuregion, cpuregion_size);
m_pcm2_prot->swap(ym_region, ym_region_size, 0);
@@ -89,16 +91,17 @@ void neogeo_kf2k2mp_cart::decrypt_all(DECRYPT_ALL_PARAMS)
kf2k2mp2
**************************************************/
-const device_type NEOGEO_KF2K2MP2_CART = device_creator<neogeo_kf2k2mp2_cart>;
+DEFINE_DEVICE_TYPE(NEOGEO_KF2K2MP2_CART, neogeo_kf2k2mp2_cart_device, "neocart_kf2k2mp2", "Neo Geo KoF 2002 MP2 Cart")
-neogeo_kf2k2mp2_cart::neogeo_kf2k2mp2_cart(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) :
- neogeo_bootleg_cart(mconfig, NEOGEO_KF2K2MP2_CART, "Neo Geo KOF 2002 MP2 Cart", tag, owner, clock, "neocart_kf2k2mp2", __FILE__),
+neogeo_kf2k2mp2_cart_device::neogeo_kf2k2mp2_cart_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) :
+ neogeo_bootleg_cart_device(mconfig, NEOGEO_KF2K2MP2_CART, tag, owner, clock),
m_cmc_prot(*this, "cmc_prot"),
m_pcm2_prot(*this, "pcm2_prot")
-{}
+{
+}
-void neogeo_kf2k2mp2_cart::decrypt_all(DECRYPT_ALL_PARAMS)
+void neogeo_kf2k2mp2_cart_device::decrypt_all(DECRYPT_ALL_PARAMS)
{
m_prot->kf2k2mp2_px_decrypt(cpuregion, cpuregion_size);
m_pcm2_prot->swap(ym_region, ym_region_size, 0);