mirror of
https://github.com/holub/mame
synced 2025-04-23 00:39:36 +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
|
||||
ioport_array_finder(device_t &base, const char *basetag)
|
||||
{
|
||||
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())));
|
||||
for (int index = 0; index < _Count; index++)
|
||||
{
|
||||
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)
|
||||
{
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user