From 964a0e792416a10d6c3d65a864e567bb39422d3f Mon Sep 17 00:00:00 2001 From: smf- Date: Thu, 2 Jun 2011 21:44:11 +0000 Subject: [PATCH] fixed replacing the gpu for coh110 based games --- src/emu/video/psx.h | 5 +++++ src/mame/drivers/namcos11.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/emu/video/psx.h b/src/emu/video/psx.h index 383bcbedf25..87309daeab7 100644 --- a/src/emu/video/psx.h +++ b/src/emu/video/psx.h @@ -17,6 +17,11 @@ MCFG_PSX_DMA_CHANNEL_READ( cputag, 2, psx_dma_write_delegate( FUNC( psxgpu_device::dma_read ), (psxgpu_device *) device ) ) \ MCFG_PSX_DMA_CHANNEL_WRITE( cputag, 2, psx_dma_read_delegate( FUNC( psxgpu_device::dma_write ), (psxgpu_device *) device ) ) +#define MCFG_PSXGPU_REPLACE( cputag, tag, type, clock ) \ + MCFG_DEVICE_REPLACE( tag, type, clock ) \ + MCFG_PSX_DMA_CHANNEL_READ( cputag, 2, psx_dma_write_delegate( FUNC( psxgpu_device::dma_read ), (psxgpu_device *) device ) ) \ + MCFG_PSX_DMA_CHANNEL_WRITE( cputag, 2, psx_dma_read_delegate( FUNC( psxgpu_device::dma_write ), (psxgpu_device *) device ) ) + extern const device_type CXD8514Q; extern const device_type CXD8538Q; extern const device_type CXD8561Q; diff --git a/src/mame/drivers/namcos11.c b/src/mame/drivers/namcos11.c index 2e22fdad940..0d999de00d6 100644 --- a/src/mame/drivers/namcos11.c +++ b/src/mame/drivers/namcos11.c @@ -1023,7 +1023,7 @@ static MACHINE_CONFIG_DERIVED( coh110, coh100 ) MCFG_CPU_PROGRAM_MAP( namcos11_map ) MCFG_CPU_VBLANK_INT("screen", namcos11_vblank) - MCFG_DEVICE_REPLACE( "gpu", CXD8561Q, 0 ) + MCFG_PSXGPU_REPLACE( "maincpu", "gpu", CXD8561Q, 0 ) MCFG_SCREEN_MODIFY("screen") MCFG_SCREEN_REFRESH_RATE( 30 )