diff options
Diffstat (limited to 'src/devices/bus/neogeo/boot_svc.cpp')
-rw-r--r-- | src/devices/bus/neogeo/boot_svc.cpp | 49 |
1 files changed, 27 insertions, 22 deletions
diff --git a/src/devices/bus/neogeo/boot_svc.cpp b/src/devices/bus/neogeo/boot_svc.cpp index 9f9a9fdce35..c39f4b778d1 100644 --- a/src/devices/bus/neogeo/boot_svc.cpp +++ b/src/devices/bus/neogeo/boot_svc.cpp @@ -16,14 +16,15 @@ svcboot **************************************************/ -const device_type NEOGEO_SVCBOOT_CART = device_creator<neogeo_svcboot_cart>; +DEFINE_DEVICE_TYPE(NEOGEO_SVCBOOT_CART, neogeo_svcboot_cart_device, "neocart_svcboot", "Neo Geo SVC Bootleg Cart") -neogeo_svcboot_cart::neogeo_svcboot_cart(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) : - neogeo_bootleg_cart(mconfig, NEOGEO_SVCBOOT_CART, "Neo Geo SVC Bootleg Cart", tag, owner, clock, "neocart_svcboot", __FILE__), +neogeo_svcboot_cart_device::neogeo_svcboot_cart_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) : + neogeo_bootleg_cart_device(mconfig, NEOGEO_SVCBOOT_CART, tag, owner, clock), m_pvc_prot(*this, "pvc_prot") -{} +{ +} -void neogeo_svcboot_cart::decrypt_all(DECRYPT_ALL_PARAMS) +void neogeo_svcboot_cart_device::decrypt_all(DECRYPT_ALL_PARAMS) { m_prot->svcboot_px_decrypt(cpuregion, cpuregion_size); m_prot->svcboot_cx_decrypt(spr_region, spr_region_size); @@ -34,7 +35,7 @@ static MACHINE_CONFIG_FRAGMENT( svcboot_cart ) MCFG_PVC_PROT_ADD("pvc_prot") MACHINE_CONFIG_END -machine_config_constructor neogeo_svcboot_cart::device_mconfig_additions() const +machine_config_constructor neogeo_svcboot_cart_device::device_mconfig_additions() const { return MACHINE_CONFIG_NAME( svcboot_cart ); } @@ -44,13 +45,14 @@ machine_config_constructor neogeo_svcboot_cart::device_mconfig_additions() const svcplus **************************************************/ -const device_type NEOGEO_SVCPLUS_CART = device_creator<neogeo_svcplus_cart>; +DEFINE_DEVICE_TYPE(NEOGEO_SVCPLUS_CART, neogeo_svcplus_cart_device, "neocart_svcplus", "Neo Geo SVC Plus Bootleg Cart") -neogeo_svcplus_cart::neogeo_svcplus_cart(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) : - neogeo_bootleg_cart(mconfig, NEOGEO_SVCPLUS_CART, "Neo Geo SVC Plus Bootleg Cart", tag, owner, clock, "neocart_svcplus", __FILE__) -{} +neogeo_svcplus_cart_device::neogeo_svcplus_cart_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) : + neogeo_bootleg_cart_device(mconfig, NEOGEO_SVCPLUS_CART, tag, owner, clock) +{ +} -void neogeo_svcplus_cart::decrypt_all(DECRYPT_ALL_PARAMS) +void neogeo_svcplus_cart_device::decrypt_all(DECRYPT_ALL_PARAMS) { m_prot->svcplus_px_decrypt(cpuregion, cpuregion_size); m_prot->svcboot_cx_decrypt(spr_region, spr_region_size); @@ -63,13 +65,15 @@ void neogeo_svcplus_cart::decrypt_all(DECRYPT_ALL_PARAMS) svcplusa **************************************************/ -const device_type NEOGEO_SVCPLUSA_CART = device_creator<neogeo_svcplusa_cart>; +DEFINE_DEVICE_TYPE(NEOGEO_SVCPLUSA_CART, neogeo_svcplusa_cart_device, "neocart_svcplusa", "Neo Geo SVC Plus Alt Bootleg Cart") + +neogeo_svcplusa_cart_device::neogeo_svcplusa_cart_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) : + neogeo_bootleg_cart_device(mconfig, NEOGEO_SVCPLUSA_CART, tag, owner, clock) +{ +} -neogeo_svcplusa_cart::neogeo_svcplusa_cart(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) : - neogeo_bootleg_cart(mconfig, NEOGEO_SVCPLUSA_CART, "Neo Geo SVC Plus Alt Bootleg Cart", tag, owner, clock, "neocart_svcplusa", __FILE__) -{} -void neogeo_svcplusa_cart::decrypt_all(DECRYPT_ALL_PARAMS) +void neogeo_svcplusa_cart_device::decrypt_all(DECRYPT_ALL_PARAMS) { m_prot->svcplusa_px_decrypt(cpuregion, cpuregion_size); m_prot->svcboot_cx_decrypt(spr_region, spr_region_size); @@ -80,14 +84,15 @@ void neogeo_svcplusa_cart::decrypt_all(DECRYPT_ALL_PARAMS) svcsplus **************************************************/ -const device_type NEOGEO_SVCSPLUS_CART = device_creator<neogeo_svcsplus_cart>; +DEFINE_DEVICE_TYPE(NEOGEO_SVCSPLUS_CART, neogeo_svcsplus_cart_device, "neocart_svcsplus", "Neo Geo SVC S.Plus Bootleg Cart") -neogeo_svcsplus_cart::neogeo_svcsplus_cart(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) : - neogeo_bootleg_cart(mconfig, NEOGEO_SVCSPLUS_CART, "Neo Geo SVC S.Plus Bootleg Cart", tag, owner, clock, "neocart_svcsplus", __FILE__), +neogeo_svcsplus_cart_device::neogeo_svcsplus_cart_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) : + neogeo_bootleg_cart_device(mconfig, NEOGEO_SVCSPLUS_CART, tag, owner, clock), m_pvc_prot(*this, "pvc_prot") -{} +{ +} -void neogeo_svcsplus_cart::decrypt_all(DECRYPT_ALL_PARAMS) +void neogeo_svcsplus_cart_device::decrypt_all(DECRYPT_ALL_PARAMS) { m_prot->svcsplus_px_decrypt(cpuregion, cpuregion_size); m_prot->sx_decrypt(fix_region, fix_region_size, 2); @@ -101,7 +106,7 @@ static MACHINE_CONFIG_FRAGMENT( svcsplus_cart ) MCFG_PVC_PROT_ADD("pvc_prot") MACHINE_CONFIG_END -machine_config_constructor neogeo_svcsplus_cart::device_mconfig_additions() const +machine_config_constructor neogeo_svcsplus_cart_device::device_mconfig_additions() const { return MACHINE_CONFIG_NAME( svcsplus_cart ); } |