diff options
author | 2018-01-07 22:20:14 +0100 | |
---|---|---|
committer | 2018-01-17 16:11:18 +0100 | |
commit | d469cc04bcace0f601802301caeddc5b473b75f2 (patch) | |
tree | a9d71540c9c69cee5ab3a533476b81833fa02f5f /src/mame/drivers/sam.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/sam.cpp')
-rw-r--r-- | src/mame/drivers/sam.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mame/drivers/sam.cpp b/src/mame/drivers/sam.cpp index be023855e72..c6510d8cb6f 100644 --- a/src/mame/drivers/sam.cpp +++ b/src/mame/drivers/sam.cpp @@ -10,6 +10,7 @@ public: sam_state(const machine_config &mconfig, device_type type, const char *tag) : driver_device(mconfig, type, tag) { } + void sam(machine_config &config); }; static ADDRESS_MAP_START( sam_map, AS_PROGRAM, 32, sam_state) @@ -20,7 +21,7 @@ ADDRESS_MAP_END static INPUT_PORTS_START( sam ) INPUT_PORTS_END -static MACHINE_CONFIG_START( sam ) +MACHINE_CONFIG_START(sam_state::sam) MCFG_CPU_ADD("maincpu", ARM7, XTAL_40MHz) // AT91R40008 MCFG_CPU_PROGRAM_MAP(sam_map) MACHINE_CONFIG_END |