mirror of
https://github.com/holub/mame
synced 2025-04-27 18:53:05 +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(); }
|
||||
|
||||
// fetch items by name
|
||||
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"]] inline device_t *device(const char *tag) const { return root_device().subdevice(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
|
||||
int run(bool quiet);
|
||||
|
Loading…
Reference in New Issue
Block a user