mirror of
https://github.com/holub/mame
synced 2025-05-01 12:16:56 +03:00
another example of m_machine(machine()) (nw)
This commit is contained in:
parent
a3b35dd621
commit
49b83056b1
@ -3013,7 +3013,7 @@ memory_bank &address_space::bank_find_or_allocate(const char *tag, offs_t addrst
|
|||||||
}
|
}
|
||||||
|
|
||||||
// if no tag, create a unique one
|
// if no tag, create a unique one
|
||||||
auto bank = std::make_unique<memory_bank>(*this, banknum, addrstart, addrend, tag);
|
auto bank = std::make_unique<memory_bank>(machine(), *this, banknum, addrstart, addrend, tag);
|
||||||
std::string temptag;
|
std::string temptag;
|
||||||
if (tag == nullptr) {
|
if (tag == nullptr) {
|
||||||
temptag = string_format("anon_%p", bank.get());
|
temptag = string_format("anon_%p", bank.get());
|
||||||
@ -4275,8 +4275,8 @@ memory_block::~memory_block()
|
|||||||
// memory_bank - constructor
|
// memory_bank - constructor
|
||||||
//-------------------------------------------------
|
//-------------------------------------------------
|
||||||
|
|
||||||
memory_bank::memory_bank(address_space &space, int index, offs_t addrstart, offs_t addrend, const char *tag)
|
memory_bank::memory_bank(running_machine &_machine, address_space &space, int index, offs_t addrstart, offs_t addrend, const char *tag)
|
||||||
: m_machine(machine()),
|
: m_machine(_machine),
|
||||||
m_baseptr(space.manager().bank_pointer_addr(index)),
|
m_baseptr(space.manager().bank_pointer_addr(index)),
|
||||||
m_index(index),
|
m_index(index),
|
||||||
m_anonymous(tag == nullptr),
|
m_anonymous(tag == nullptr),
|
||||||
|
@ -532,7 +532,7 @@ class memory_bank
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
// construction/destruction
|
// construction/destruction
|
||||||
memory_bank(address_space &space, int index, offs_t start, offs_t end, const char *tag = nullptr);
|
memory_bank(running_machine &_machine, address_space &space, int index, offs_t start, offs_t end, const char *tag = nullptr);
|
||||||
~memory_bank();
|
~memory_bank();
|
||||||
|
|
||||||
// getters
|
// getters
|
||||||
|
Loading…
Reference in New Issue
Block a user