summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2016-08-27 08:34:06 +1000
committer Vas Crabb <vas@vastheman.com>2016-08-27 08:34:06 +1000
commit17cf4acbeff956fb334c4254b66e81a5543b09c5 (patch)
tree539242ddd4799eb8c32b83709f85fff5183f9684 /src/mame
parentcdb531e83defeb87fe131c37ca4ff3d28fc3f3df (diff)
* Make object finders behave like pointers for the purposes of implicit casts, dereferencing and array access, not something that's part pointer, part reference, part vector
* Require dummy tag to be specified explicitly, magical defaults are unhelpful here as the more common case it to search for a real object * Make the search methods private in concrete classes where possible as users should rely on the resolution process for these things Still can't hide the memory bank find method since atari400.cpp subverts the resolution process. Can't get rid of set_target on shared_ptr_finder as it's abused all over the place.
Diffstat (limited to 'src/mame')
-rw-r--r--src/mame/drivers/atari400.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mame/drivers/atari400.cpp b/src/mame/drivers/atari400.cpp
index c0f004f38cc..17af5d97240 100644
--- a/src/mame/drivers/atari400.cpp
+++ b/src/mame/drivers/atari400.cpp
@@ -1710,7 +1710,7 @@ void a400_state::setup_ram(int bank, UINT32 size)
ram_top = std::min(size, UINT32(0x8000)) - 1;
m_maincpu->space(AS_PROGRAM).install_readwrite_bank(0x0000, ram_top, "0000");
if (m_0000 == nullptr)
- m_0000.findit();
+ m_0000.findit(false);
m_0000->set_base(m_ram->pointer());
break;
case 1: // 0x8000-0x9fff
@@ -1719,7 +1719,7 @@ void a400_state::setup_ram(int bank, UINT32 size)
{
m_maincpu->space(AS_PROGRAM).install_readwrite_bank(0x8000, ram_top, "8000");
if (m_8000 == nullptr)
- m_8000.findit();
+ m_8000.findit(false);
m_8000->set_base(m_ram->pointer() + 0x8000);
}
break;
@@ -1729,7 +1729,7 @@ void a400_state::setup_ram(int bank, UINT32 size)
{
m_maincpu->space(AS_PROGRAM).install_readwrite_bank(0xa000, ram_top, "a000");
if (m_a000 == nullptr)
- m_a000.findit();
+ m_a000.findit(false);
m_a000->set_base(m_ram->pointer() + 0xa000);
}
break;