mirror of
https://github.com/holub/mame
synced 2025-07-04 17:38:08 +03:00
Fix drivers using ioport_arrays on OSX (nw)
This commit is contained in:
parent
90ce8c4958
commit
2fb1ec8ab0
@ -267,8 +267,10 @@ public:
|
|||||||
// construction/destruction
|
// construction/destruction
|
||||||
ioport_array_finder(device_t &base, const char *basetag)
|
ioport_array_finder(device_t &base, const char *basetag)
|
||||||
{
|
{
|
||||||
for (int index = 0; index < _Count; index++) {
|
for (int index = 0; index < _Count; index++)
|
||||||
m_array[index].reset(global_alloc(ioport_finder_type(base, strformat(m_tag[index], "%s.%d", basetag, index).c_str())));
|
{
|
||||||
|
strformat(m_tag[index], "%s.%d", basetag, index);
|
||||||
|
m_array[index].reset(global_alloc(ioport_finder_type(base, m_tag[index].c_str())));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -437,7 +439,10 @@ public:
|
|||||||
shared_ptr_array_finder(device_t &base, const char *basetag, UINT8 width = sizeof(_PointerType) * 8)
|
shared_ptr_array_finder(device_t &base, const char *basetag, UINT8 width = sizeof(_PointerType) * 8)
|
||||||
{
|
{
|
||||||
for (int index = 0; index < _Count; index++)
|
for (int index = 0; index < _Count; index++)
|
||||||
m_array[index].reset(global_alloc(shared_ptr_type(base, strformat(m_tag[index],"%s.%d", basetag, index).c_str(), width)));
|
{
|
||||||
|
strformat(m_tag[index],"%s.%d", basetag, index);
|
||||||
|
m_array[index].reset(global_alloc(shared_ptr_type(base, m_tag[index].c_str(), width)));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// array accessors
|
// array accessors
|
||||||
|
Loading…
Reference in New Issue
Block a user