some snes cleanup (nw)

This commit is contained in:
Miodrag Milanovic 2013-03-05 14:00:33 +00:00
parent 86416c03e1
commit 304f60902d
6 changed files with 3 additions and 21 deletions

View File

@ -845,8 +845,6 @@ static MACHINE_CONFIG_START( nss, nss_state )
MCFG_SOUND_ROUTE(1, "rspeaker", 1.00)
/* video hardware */
MCFG_VIDEO_START( snes )
/* TODO: the screen should actually superimpose, but for the time being let's just separate outputs */
MCFG_DEFAULT_LAYOUT(layout_dualhsxs)

View File

@ -480,8 +480,6 @@ static MACHINE_CONFIG_START( sfcbox, sfcbox_state )
MCFG_SOUND_ROUTE(1, "rspeaker", 1.00)
/* video hardware */
MCFG_VIDEO_START( snes )
/* TODO: the screen should actually superimpose, but for the time being let's just separate outputs */
MCFG_DEFAULT_LAYOUT(layout_dualhsxs)

View File

@ -642,8 +642,6 @@ static MACHINE_CONFIG_START( kinstb, snesb_state )
MCFG_MACHINE_RESET( snes )
/* video hardware */
MCFG_VIDEO_START( snes )
MCFG_SCREEN_ADD("screen", RASTER)
MCFG_SCREEN_RAW_PARAMS(DOTCLK_NTSC, SNES_HTOTAL, 0, SNES_SCR_WIDTH, SNES_VTOTAL_NTSC, 0, SNES_SCR_HEIGHT_NTSC)
MCFG_SCREEN_UPDATE_DRIVER( snes_state, screen_update )

View File

@ -699,6 +699,7 @@ public:
DECLARE_DEVICE_IMAGE_LOAD_MEMBER(sufami_cart);
DECLARE_READ8_MEMBER( snes_r_io );
DECLARE_WRITE8_MEMBER( snes_w_io );
virtual void video_start();
};
/* Special chips, checked at init and used in memory handlers */
@ -768,12 +769,4 @@ extern DECLARE_WRITE8_HANDLER( snes_w_bank7 );
extern UINT8 *snes_ram; /* Main memory */
extern struct snes_cart_info snes_cart;
/*----------- defined in video/snes.c -----------*/
extern VIDEO_START( snes );
extern SCREEN_UPDATE_RGB32( snes );
#endif /* _SNES_H_ */

View File

@ -31,15 +31,12 @@
/* -- Globals -- */
UINT8 *snes_ram = NULL; /* 65816 ram */
struct snes_cart_info snes_cart;
#define DMA_REG(a) m_dma_regs[a - 0x4300] // regs 0x4300-0x437f
VIDEO_START( snes )
void snes_state::video_start()
{
snes_state *state = machine.driver_data<snes_state>();
state->m_ppu.ppu_start(machine);
m_ppu.ppu_start(machine());
}
UINT32 snes_state::screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect)

View File

@ -1217,8 +1217,6 @@ static MACHINE_CONFIG_START( snes_base, snes_console_state )
MCFG_MACHINE_RESET(snes_mess)
/* video hardware */
MCFG_VIDEO_START(snes)
MCFG_SCREEN_ADD("screen", RASTER)
MCFG_SCREEN_RAW_PARAMS(DOTCLK_NTSC * 2, SNES_HTOTAL * 2, 0, SNES_SCR_WIDTH * 2, SNES_VTOTAL_NTSC, 0, SNES_SCR_HEIGHT_NTSC)
MCFG_SCREEN_UPDATE_DRIVER( snes_state, screen_update )