diff options
author | 2022-02-13 07:18:36 +1100 | |
---|---|---|
committer | 2022-02-13 07:18:36 +1100 | |
commit | 4684eaa4d6cfeacb8877ef6846a4604dc0d8ec1c (patch) | |
tree | f65f391e67628dc525c92b3d01c676da0b86e795 /src/devices/bus/nes | |
parent | 30c579fefb3542eff260008b6da0691646566f9e (diff) |
Cleanup:
* bus/nes/multigame.cpp: Got rid of a device type comparison.
* Fixed a couple of errors in debugger documentation.
* Reduced redundancy in more slot machine layouts.
Diffstat (limited to 'src/devices/bus/nes')
-rw-r--r-- | src/devices/bus/nes/multigame.cpp | 8 | ||||
-rw-r--r-- | src/devices/bus/nes/multigame.h | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/devices/bus/nes/multigame.cpp b/src/devices/bus/nes/multigame.cpp index d2b91f8f177..8d06c5fd946 100644 --- a/src/devices/bus/nes/multigame.cpp +++ b/src/devices/bus/nes/multigame.cpp @@ -499,18 +499,18 @@ nes_n625092_device::nes_n625092_device(const machine_config &mconfig, const char { } -nes_bmc_th22913_device::nes_bmc_th22913_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock) - : nes_vram_protect_device(mconfig, type, tag, owner, clock), m_vram_prot_bit(type == NES_BMC_TH22913 ? 10 : 9) +nes_bmc_th22913_device::nes_bmc_th22913_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, u8 vram_prot_bit) + : nes_vram_protect_device(mconfig, type, tag, owner, clock), m_vram_prot_bit(vram_prot_bit) { } nes_bmc_th22913_device::nes_bmc_th22913_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock) - : nes_bmc_th22913_device(mconfig, NES_BMC_TH22913, tag, owner, clock) + : nes_bmc_th22913_device(mconfig, NES_BMC_TH22913, tag, owner, clock, 10) { } nes_bmc_82ab_device::nes_bmc_82ab_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock) - : nes_bmc_th22913_device(mconfig, NES_BMC_82AB, tag, owner, clock) + : nes_bmc_th22913_device(mconfig, NES_BMC_82AB, tag, owner, clock, 9) { } diff --git a/src/devices/bus/nes/multigame.h b/src/devices/bus/nes/multigame.h index 4ce70450a56..a117ee5745b 100644 --- a/src/devices/bus/nes/multigame.h +++ b/src/devices/bus/nes/multigame.h @@ -1283,10 +1283,10 @@ public: protected: // construction/destruction - nes_bmc_th22913_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); + nes_bmc_th22913_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, u8 vram_prot_bit); private: - u8 m_vram_prot_bit; + const u8 m_vram_prot_bit; }; |