From 32a73f450da82c345b0f694bee311af34a5e717d Mon Sep 17 00:00:00 2001 From: Vas Crabb Date: Fri, 4 May 2018 03:01:32 +1000 Subject: Make MCFG_DEVICE_ADD and callable device types more flexible: * Allows defaulted clocks (see subtle example with vboy) * Allows additional constructors (see RS232 port in tranz330) * Allows use of device finder in place of tag in MCFG_DEVICE_ADD * Requires out-of-line destructor for devices using incomplete types * Requires XTAL or explicit u32 for clocks for devices with private types Devices must still define the standard constructor. When writing additional constructors, be aware that the constructor runs before device_add_mconfig in the context of the existing device, not the new device. See osborne1, zorba, tranz330, and vboy for examples of this in use. Compilation is a bit slower, but this is temporary while refactoring is in progress. Eliminated the need for MCFG_SOUND_ROUTE_EX. Removed macros from slot option configuration - they just obfuscated code and slowed it down with needless dynamic casts, but didn't actually simplify it. --- src/devices/bus/psx/parallel.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/devices/bus/psx/parallel.h') diff --git a/src/devices/bus/psx/parallel.h b/src/devices/bus/psx/parallel.h index 4ef05c52233..129b123ba3f 100644 --- a/src/devices/bus/psx/parallel.h +++ b/src/devices/bus/psx/parallel.h @@ -68,7 +68,7 @@ protected: // device type definition DECLARE_DEVICE_TYPE(PSX_PARALLEL_SLOT, psx_parallel_slot_device) -SLOT_INTERFACE_EXTERN( psx_parallel_devices ); +void psx_parallel_devices(device_slot_interface &device); #endif // MAME_BUS_PSX_PARALLEL_H -- cgit v1.2.3-70-g09d2