mirror of
https://github.com/holub/mame
synced 2025-04-28 03:02:52 +03:00
machine().device(tag) is now deprecated (nw)
This commit is contained in:
parent
2beba4ce73
commit
09ed257925
@ -210,8 +210,8 @@ public:
|
|||||||
bool allow_logging() const { return !m_logerror_list.empty(); }
|
bool allow_logging() const { return !m_logerror_list.empty(); }
|
||||||
|
|
||||||
// fetch items by name
|
// fetch items by name
|
||||||
inline device_t *device(const char *tag) const { return root_device().subdevice(tag); }
|
[[deprecated("absolute tag lookup; use subdevice or finder instead"]] inline device_t *device(const char *tag) const { return root_device().subdevice(tag); }
|
||||||
template <class DeviceClass> inline DeviceClass *device(const char *tag) { return downcast<DeviceClass *>(device(tag)); }
|
[[deprecated("absolute tag lookup; use subdevice or finder instead"]] template <class DeviceClass> inline DeviceClass *device(const char *tag) { return downcast<DeviceClass *>(device(tag)); }
|
||||||
|
|
||||||
// immediate operations
|
// immediate operations
|
||||||
int run(bool quiet);
|
int run(bool quiet);
|
||||||
|
Loading…
Reference in New Issue
Block a user