diff options
author | 2012-09-17 08:22:16 +0000 | |
---|---|---|
committer | 2012-09-17 08:22:16 +0000 | |
commit | 3cce7e019e095296b5ce2bb45d19b1209bed961d (patch) | |
tree | 4fa76260ac2dee5878fbba70d759ba6a1d4d76bf /src/mess/drivers/psx.c | |
parent | 22b4739aded17790b3f1bf31b9da8ff9e6a0860c (diff) |
Memory handler normalization, part 2. Change legacy
read/write handlers to take an address_space & instead
of an address_space *. Also update pretty much all other
functions to take a reference where appropriate.
[Aaron Giles]
Diffstat (limited to 'src/mess/drivers/psx.c')
-rw-r--r-- | src/mess/drivers/psx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mess/drivers/psx.c b/src/mess/drivers/psx.c index 3c642b1dd44..b01134e0c83 100644 --- a/src/mess/drivers/psx.c +++ b/src/mess/drivers/psx.c @@ -455,7 +455,7 @@ DIRECT_UPDATE_MEMBER(psx1_state::psx_setopbase) static QUICKLOAD_LOAD( psx_exe_load ) { psx1_state *state = image.device().machine().driver_data<psx1_state>(); - address_space *space = image.device().machine().device( "maincpu")->memory().space( AS_PROGRAM ); + address_space &space = *image.device().machine().device( "maincpu")->memory().space( AS_PROGRAM ); state->m_exe_size = 0; state->m_exe_buffer = (UINT8*)malloc( quickload_size ); @@ -470,7 +470,7 @@ static QUICKLOAD_LOAD( psx_exe_load ) return IMAGE_INIT_FAIL; } state->m_exe_size = quickload_size; - space->set_direct_update_handler(direct_update_delegate(FUNC(psx1_state::psx_setopbase), state)); + space.set_direct_update_handler(direct_update_delegate(FUNC(psx1_state::psx_setopbase), state)); return IMAGE_INIT_PASS; } |