diff options
author | 2018-05-05 10:06:20 -0400 | |
---|---|---|
committer | 2018-05-05 10:06:20 -0400 | |
commit | fca6501b56c97372ba02a37cf918ec42930e85f4 (patch) | |
tree | 8fb4be79c5361f339d02ecb241d7f4642f8061e7 /src | |
parent | adf11afca41f45bbe785f409c610d35f262d5361 (diff) |
magictg: Who do? (nw)
Diffstat (limited to 'src')
-rw-r--r-- | src/mame/drivers/magictg.cpp | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/src/mame/drivers/magictg.cpp b/src/mame/drivers/magictg.cpp index 7598d93c137..e20b4389cf4 100644 --- a/src/mame/drivers/magictg.cpp +++ b/src/mame/drivers/magictg.cpp @@ -148,12 +148,17 @@ class magictg_state : public driver_device { public: magictg_state(const machine_config &mconfig, device_type type, const char *tag) - : driver_device(mconfig, type, tag), - m_mips(*this, "mips"), - m_adsp(*this, "adsp"), - m_pci(*this, "pcibus"), - m_adsp_pram(*this, "adsp_pram"){ } + : driver_device(mconfig, type, tag) + , m_mips(*this, "mips") + , m_adsp(*this, "adsp") + , m_pci(*this, "pcibus") + , m_adsp_pram(*this, "adsp_pram") + , m_voodoo(*this, "voodoo_%u", 0U) + { } + void magictg(machine_config &config); + +private: required_device<cpu_device> m_mips; required_device<adsp2181_device> m_adsp; required_device<pci_bus_legacy_device> m_pci; @@ -182,7 +187,7 @@ public: /* 3Dfx Voodoo */ - voodoo_device* m_voodoo[2]; + required_device_array<voodoo_device, 2> m_voodoo; struct { @@ -226,7 +231,6 @@ public: void zr36120_reset(); - void magictg(machine_config &config); void adsp_data_map(address_map &map); void adsp_io_map(address_map &map); void adsp_program_map(address_map &map); @@ -259,8 +263,6 @@ public: void magictg_state::machine_start() { - m_voodoo[0] = (voodoo_device*)machine().device("voodoo_0"); - m_voodoo[1] = (voodoo_device*)machine().device("voodoo_1"); } |