summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/koftball.c
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2012-04-11 16:29:24 +0000
committer Aaron Giles <aaron@aarongiles.com>2012-04-11 16:29:24 +0000
commit4407afdb54ec5009223c349a682011ee2acd1083 (patch)
tree85c5b001e8b81e671ddb253b24fbcd5971404924 /src/mame/drivers/koftball.c
parent986f1ef77d155ababe21499a24867604b84d6564 (diff)
Removed unnecessary target() calls from shared_ptr references.
You still need target() if you want to cast to another pointer size. This should be rare, and in fact fixing these pointed out a few cases where code was missing BYTE/WORD/DWORD_XOR_* macros. I flagged these with: // ERROR: This cast is NOT endian-safe without the use of BYTE/WORD/DWORD_XOR_* macros! For future fixing.
Diffstat (limited to 'src/mame/drivers/koftball.c')
-rw-r--r--src/mame/drivers/koftball.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mame/drivers/koftball.c b/src/mame/drivers/koftball.c
index db6b4333797..70e83db1299 100644
--- a/src/mame/drivers/koftball.c
+++ b/src/mame/drivers/koftball.c
@@ -67,7 +67,7 @@ public:
static TILE_GET_INFO( get_t1_tile_info )
{
koftball_state *state = machine.driver_data<koftball_state>();
- int data = state->m_bmc_1_videoram.target()[tile_index];
+ int data = state->m_bmc_1_videoram[tile_index];
SET_TILE_INFO(
0,
data,
@@ -78,7 +78,7 @@ static TILE_GET_INFO( get_t1_tile_info )
static TILE_GET_INFO( get_t2_tile_info )
{
koftball_state *state = machine.driver_data<koftball_state>();
- int data = state->m_bmc_2_videoram.target()[tile_index];
+ int data = state->m_bmc_2_videoram[tile_index];
SET_TILE_INFO(
0,
data,
@@ -147,13 +147,13 @@ WRITE16_MEMBER(koftball_state::prot_w)
WRITE16_MEMBER(koftball_state::bmc_1_videoram_w)
{
- COMBINE_DATA(&m_bmc_1_videoram.target()[offset]);
+ COMBINE_DATA(&m_bmc_1_videoram[offset]);
m_tilemap_1->mark_tile_dirty(offset);
}
WRITE16_MEMBER(koftball_state::bmc_2_videoram_w)
{
- COMBINE_DATA(&m_bmc_2_videoram.target()[offset]);
+ COMBINE_DATA(&m_bmc_2_videoram[offset]);
m_tilemap_2->mark_tile_dirty(offset);
}
@@ -315,7 +315,7 @@ static DRIVER_INIT(koftball)
int offset=0;
while(nvram[offset]!=0xffff)
{
- state->m_main_ram.target()[offset]=nvram[offset];
+ state->m_main_ram[offset]=nvram[offset];
++offset;
}
}