diff options
author | Olivier Galibert <galibert@pobox.com> | 2018-01-07 22:20:14 +0100 |
---|---|---|
committer | Olivier Galibert <galibert@pobox.com> | 2018-01-17 16:11:18 +0100 |
commit | d469cc04bcace0f601802301caeddc5b473b75f2 (patch) | |
tree | a9d71540c9c69cee5ab3a533476b81833fa02f5f /src/mame/drivers/smsmcorp.cpp | |
parent | 9f383f76ce6f00cc3320e5ba53dc323781e0077b (diff) |
API Change: Machine configs are now a method of the owner class, and the prototype is simplified [O. Galibert]
Beware, the device context does not follow in MCFG_FRAGMENT_ADD
anymore due to the prototype change. So creating a device then
configuring through a fragment doesn't work as-is. The simplest
solution is just to add a MCFG_DEVICE_MODIFY at the start of the
fragment with the correct tag.
Diffstat (limited to 'src/mame/drivers/smsmcorp.cpp')
-rw-r--r-- | src/mame/drivers/smsmcorp.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mame/drivers/smsmcorp.cpp b/src/mame/drivers/smsmcorp.cpp index fff73cf7058..150538acc92 100644 --- a/src/mame/drivers/smsmcorp.cpp +++ b/src/mame/drivers/smsmcorp.cpp @@ -253,6 +253,8 @@ public: uint32_t screen_update_sms(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); required_device<cpu_device> m_maincpu; required_device<screen_device> m_screen; + void sureshot(machine_config &config); + void sms(machine_config &config); }; @@ -533,7 +535,7 @@ void smsmfg_state::machine_reset() m_communication_port_status = 0; } -static MACHINE_CONFIG_START( sms ) +MACHINE_CONFIG_START(smsmfg_state::sms) MCFG_CPU_ADD("maincpu", I8088, XTAL_24MHz/8) MCFG_CPU_PROGRAM_MAP(sms_map) @@ -572,7 +574,7 @@ static MACHINE_CONFIG_START( sms ) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END -static MACHINE_CONFIG_DERIVED( sureshot, sms ) +MACHINE_CONFIG_DERIVED(smsmfg_state::sureshot, sms) MCFG_CPU_MODIFY("maincpu") MCFG_CPU_PROGRAM_MAP(sureshot_map) |