mirror of
https://github.com/holub/mame
synced 2025-07-04 17:38:08 +03:00
fixed issue with -lx (nw)
This commit is contained in:
parent
62c0bda952
commit
1a7b8364f6
@ -49,6 +49,17 @@ timer_device::timer_device(const machine_config &mconfig, std::string tag, devic
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//-------------------------------------------------
|
||||||
|
// static_configure_generic_empty - configuration
|
||||||
|
// helper to set up a generic timer
|
||||||
|
//-------------------------------------------------
|
||||||
|
|
||||||
|
void timer_device::static_configure_generic_empty(device_t &device)
|
||||||
|
{
|
||||||
|
timer_device &timer = downcast<timer_device &>(device);
|
||||||
|
timer.m_type = TIMER_TYPE_GENERIC;
|
||||||
|
}
|
||||||
|
|
||||||
//-------------------------------------------------
|
//-------------------------------------------------
|
||||||
// static_configure_generic - configuration
|
// static_configure_generic - configuration
|
||||||
// helper to set up a generic timer
|
// helper to set up a generic timer
|
||||||
|
@ -32,7 +32,7 @@
|
|||||||
|
|
||||||
#define MCFG_TIMER_ADD_NONE(_tag) \
|
#define MCFG_TIMER_ADD_NONE(_tag) \
|
||||||
MCFG_DEVICE_ADD(_tag, TIMER, 0) \
|
MCFG_DEVICE_ADD(_tag, TIMER, 0) \
|
||||||
timer_device::static_configure_generic(*device, timer_device_expired_delegate());
|
timer_device::static_configure_generic_empty(*device);
|
||||||
#define MCFG_TIMER_DRIVER_ADD(_tag, _class, _callback) \
|
#define MCFG_TIMER_DRIVER_ADD(_tag, _class, _callback) \
|
||||||
MCFG_DEVICE_ADD(_tag, TIMER, 0) \
|
MCFG_DEVICE_ADD(_tag, TIMER, 0) \
|
||||||
timer_device::static_configure_generic(*device, timer_device_expired_delegate(&_class::_callback, #_class "::" #_callback, NULL, (_class *)0));
|
timer_device::static_configure_generic(*device, timer_device_expired_delegate(&_class::_callback, #_class "::" #_callback, NULL, (_class *)0));
|
||||||
@ -85,6 +85,7 @@ public:
|
|||||||
|
|
||||||
// inline configuration helpers
|
// inline configuration helpers
|
||||||
static void static_configure_generic(device_t &device, timer_device_expired_delegate callback);
|
static void static_configure_generic(device_t &device, timer_device_expired_delegate callback);
|
||||||
|
static void static_configure_generic_empty(device_t &device);
|
||||||
static void static_configure_periodic(device_t &device, timer_device_expired_delegate callback, const attotime &period);
|
static void static_configure_periodic(device_t &device, timer_device_expired_delegate callback, const attotime &period);
|
||||||
static void static_configure_scanline(device_t &device, timer_device_expired_delegate callback, std::string screen, int first_vpos, int increment);
|
static void static_configure_scanline(device_t &device, timer_device_expired_delegate callback, std::string screen, int first_vpos, int increment);
|
||||||
static void static_set_callback(device_t &device, timer_device_expired_delegate callback);
|
static void static_set_callback(device_t &device, timer_device_expired_delegate callback);
|
||||||
|
Loading…
Reference in New Issue
Block a user