Previous 199869 Revisions Next

r29453 Tuesday 8th April, 2014 at 15:24:11 UTC by Fabio Priuli
(MESS) removed an unused interface from NES carts. nw.
[src/emu/bus/nes]ggenie.c nes_slot.h
[src/mess/drivers]nes.c

trunk/src/emu/bus/nes/ggenie.c
r29452r29453
254254//  MACHINE_CONFIG_FRAGMENT( sub_slot )
255255//-------------------------------------------------
256256
257static const nes_cart_interface gg_crt_interface =
258{
259};
260
261257static MACHINE_CONFIG_FRAGMENT( sub_slot )
262   MCFG_NES_CARTRIDGE_ADD("gg_slot", gg_crt_interface, nes_cart, NULL)
258   MCFG_NES_CARTRIDGE_ADD("gg_slot", nes_cart, NULL)
263259   MCFG_NES_CARTRIDGE_NOT_MANDATORY
264260MACHINE_CONFIG_END
265261
trunk/src/emu/bus/nes/nes_slot.h
r29452r29453
128128};
129129
130130
131// ======================> nes_cart_interface
132
133struct nes_cart_interface
134{
135};
136
137131#define CHRROM 0
138132#define CHRRAM 1
139133
r29452r29453
323317// ======================> nes_cart_slot_device
324318
325319class nes_cart_slot_device : public device_t,
326                        public nes_cart_interface,
327320                        public device_image_interface,
328321                        public device_slot_interface
329322{
r29452r29453
400393 DEVICE CONFIGURATION MACROS
401394 ***************************************************************************/
402395
403#define MCFG_NES_CARTRIDGE_ADD(_tag,_config,_slot_intf,_def_slot) \
396#define MCFG_NES_CARTRIDGE_ADD(_tag, _slot_intf, _def_slot) \
404397   MCFG_DEVICE_ADD(_tag, NES_CART_SLOT, 0) \
405   MCFG_DEVICE_CONFIG(_config) \
406398   MCFG_DEVICE_SLOT_INTERFACE(_slot_intf, _def_slot, false)
407399
408400#define MCFG_NES_CARTRIDGE_NOT_MANDATORY                                     \
trunk/src/mess/drivers/nes.c
r29452r29453
666666};
667667
668668
669static const nes_cart_interface nes_crt_interface =
670{
671};
672
673
674669static const cassette_interface fc_cassette_interface =
675670{
676671   cassette_default_formats,
r29452r29453
712707   MCFG_SOUND_CONFIG(nes_apu_interface)
713708   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.90)
714709
715   MCFG_NES_CARTRIDGE_ADD("nes_slot", nes_crt_interface, nes_cart, NULL)
710   MCFG_NES_CARTRIDGE_ADD("nes_slot", nes_cart, NULL)
716711   MCFG_SOFTWARE_LIST_ADD("cart_list", "nes")
717712   MCFG_SOFTWARE_LIST_ADD("ade_list", "nes_ade")         // Camerica/Codemasters Aladdin Deck Enhancer mini-carts
718713   MCFG_SOFTWARE_LIST_ADD("ntb_list", "nes_ntbrom")      // Sunsoft Nantettate! Baseball mini-carts
r29452r29453
768763
769764static MACHINE_CONFIG_DERIVED( famicom, nes )
770765   MCFG_DEVICE_REMOVE("nes_slot")
771   MCFG_NES_CARTRIDGE_ADD("nes_slot", nes_crt_interface, nes_cart, NULL)
766   MCFG_NES_CARTRIDGE_ADD("nes_slot", nes_cart, NULL)
772767   MCFG_NES_CARTRIDGE_NOT_MANDATORY
773768
774769   MCFG_LEGACY_FLOPPY_DRIVE_ADD(FLOPPY_0, nes_floppy_interface)

Previous 199869 Revisions Next


© 1997-2024 The MAME Team