summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
author smf- <smf-@users.noreply.github.com>2017-12-14 23:25:50 +0000
committer smf- <smf-@users.noreply.github.com>2017-12-14 23:27:03 +0000
commit49b83056b1d5966e6260c05da3a116fe81bbd06c (patch)
tree5105534c980d7a15e11325314e4198246efb4755 /src
parenta3b35dd62150f1ab1faa0a323e112310555de488 (diff)
another example of m_machine(machine()) (nw)
Diffstat (limited to 'src')
-rw-r--r--src/emu/emumem.cpp6
-rw-r--r--src/emu/emumem.h2
2 files changed, 4 insertions, 4 deletions
diff --git a/src/emu/emumem.cpp b/src/emu/emumem.cpp
index ea845fbb229..ee275044b4b 100644
--- a/src/emu/emumem.cpp
+++ b/src/emu/emumem.cpp
@@ -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
- 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;
if (tag == nullptr) {
temptag = string_format("anon_%p", bank.get());
@@ -4275,8 +4275,8 @@ memory_block::~memory_block()
// memory_bank - constructor
//-------------------------------------------------
-memory_bank::memory_bank(address_space &space, int index, offs_t addrstart, offs_t addrend, const char *tag)
- : m_machine(machine()),
+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_baseptr(space.manager().bank_pointer_addr(index)),
m_index(index),
m_anonymous(tag == nullptr),
diff --git a/src/emu/emumem.h b/src/emu/emumem.h
index 135a34c701a..23204408a82 100644
--- a/src/emu/emumem.h
+++ b/src/emu/emumem.h
@@ -532,7 +532,7 @@ class memory_bank
public:
// 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();
// getters