mirror of
https://github.com/holub/mame
synced 2025-05-30 09:33:05 +03:00
and another thing (nw)
This commit is contained in:
parent
db2c8c9555
commit
fea19bd797
@ -258,7 +258,7 @@ READ8_MEMBER(nes_ggenie_device::nt_r)
|
||||
// device_add_mconfig - add device configuration
|
||||
//-------------------------------------------------
|
||||
|
||||
MACHINE_CONFIG_START(nes_ggenie_device::device_add_mconfig)
|
||||
MCFG_NES_CARTRIDGE_ADD("gg_slot", DERIVED_CLOCK(1, 1), nes_cart, nullptr)
|
||||
MCFG_NES_CARTRIDGE_NOT_MANDATORY
|
||||
MACHINE_CONFIG_END
|
||||
void nes_ggenie_device::device_add_mconfig(machine_config &config)
|
||||
{
|
||||
NES_CART_SLOT(config, "gg_slot", DERIVED_CLOCK(1, 1), nes_cart, nullptr).set_must_be_loaded(false);
|
||||
}
|
||||
|
@ -339,6 +339,15 @@ class nes_cart_slot_device : public device_t,
|
||||
{
|
||||
public:
|
||||
// construction/destruction
|
||||
template <typename T>
|
||||
nes_cart_slot_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock, T &&opts, const char *dflt)
|
||||
: nes_cart_slot_device(mconfig, tag, owner, clock)
|
||||
{
|
||||
option_reset();
|
||||
opts(*this);
|
||||
set_default_option(dflt);
|
||||
set_fixed(false);
|
||||
}
|
||||
nes_cart_slot_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
|
||||
virtual ~nes_cart_slot_device();
|
||||
|
||||
@ -414,10 +423,6 @@ DECLARE_DEVICE_TYPE(NES_CART_SLOT, nes_cart_slot_device)
|
||||
#define NESSLOT_CHRROM_REGION_TAG ":cart:chr_rom"
|
||||
|
||||
|
||||
#define MCFG_NES_CARTRIDGE_ADD(_tag, _clock, _slot_intf, _def_slot) \
|
||||
MCFG_DEVICE_ADD(_tag, NES_CART_SLOT, _clock) \
|
||||
MCFG_DEVICE_SLOT_INTERFACE(_slot_intf, _def_slot, false)
|
||||
|
||||
#define MCFG_NES_CARTRIDGE_NOT_MANDATORY \
|
||||
static_cast<nes_cart_slot_device *>(device)->set_must_be_loaded(false);
|
||||
|
||||
|
@ -167,7 +167,7 @@ MACHINE_CONFIG_START(sns_rom_sgb1_device::device_add_mconfig)
|
||||
MCFG_LR35902_TIMER_CB(WRITE8(*this, sns_rom_sgb_device, gb_timer_callback))
|
||||
MCFG_LR35902_HALT_BUG
|
||||
|
||||
MCFG_SGB_PPU_ADD("sgb_ppu", "sgb_cpu")
|
||||
MCFG_DEVICE_ADD("sgb_ppu", SGB_PPU, "sgb_cpu")
|
||||
|
||||
MCFG_DEVICE_ADD("sgb_apu", DMG_APU, 4295454)
|
||||
|
||||
@ -193,7 +193,7 @@ MACHINE_CONFIG_START(sns_rom_sgb2_device::device_add_mconfig)
|
||||
MCFG_LR35902_TIMER_CB(WRITE8(*this, sns_rom_sgb_device, gb_timer_callback))
|
||||
MCFG_LR35902_HALT_BUG
|
||||
|
||||
MCFG_SGB_PPU_ADD("sgb_ppu", "sgb_cpu")
|
||||
MCFG_DEVICE_ADD("sgb_ppu", SGB_PPU, "sgb_cpu")
|
||||
|
||||
MCFG_DEVICE_ADD("sgb_apu", DMG_APU, XTAL(4'194'304))
|
||||
|
||||
|
@ -79,7 +79,7 @@ MACHINE_CONFIG_START(nes_state::nes)
|
||||
MCFG_NES_CONTROL_PORT_ADD("ctrl2", nes_control_port2_devices, "joypad")
|
||||
MCFG_NESCTRL_BRIGHTPIXEL_CB(nes_state, bright_pixel)
|
||||
|
||||
MCFG_NES_CARTRIDGE_ADD("nes_slot", NTSC_APU_CLOCK, nes_cart, nullptr)
|
||||
MCFG_DEVICE_ADD("nes_slot", NES_CART_SLOT, NTSC_APU_CLOCK, nes_cart, nullptr)
|
||||
MCFG_SOFTWARE_LIST_ADD("cart_list", "nes")
|
||||
MCFG_SOFTWARE_LIST_ADD("ade_list", "nes_ade") // Camerica/Codemasters Aladdin Deck Enhancer mini-carts
|
||||
MCFG_SOFTWARE_LIST_ADD("ntb_list", "nes_ntbrom") // Sunsoft Nantettate! Baseball mini-carts
|
||||
|
Loading…
Reference in New Issue
Block a user