fixed replacing the gpu for coh110 based games

This commit is contained in:
smf- 2011-06-02 21:44:11 +00:00
parent f1dea91333
commit 964a0e7924
2 changed files with 6 additions and 1 deletions

View File

@ -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;

View File

@ -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 )