Previous 199869 Revisions Next

r34810 Monday 2nd February, 2015 at 19:22:52 UTC by Osso
raiden.c: added save state support (nw)
[src/mame/audio]seibu.c
[src/mame/drivers]raiden.c
[src/mame/includes]raiden.h
[src/mame/video]raiden.c

trunk/src/mame/audio/seibu.c
r243321r243322
489489   m_stream = machine().sound().stream_alloc(*this, 0, 1, clock());
490490   m_base = machine().root_device().memregion(m_rom_tag)->base();
491491   m_adpcm.reset();
492   
493   save_item(NAME(m_current));
494   save_item(NAME(m_end));
495   save_item(NAME(m_nibble));
496   save_item(NAME(m_playing));
492497}
493498
494499// "decrypt" is a bit flowery here, as it's probably just line-swapping to
trunk/src/mame/drivers/raiden.c
r243321r243322
631631/***************************************************************************/
632632
633633/* Same PCB, differ by region byte(s) */
634GAME( 1990, raiden,   0,      raiden,  raiden, raiden_state,  raiden,  ROT270, "Seibu Kaihatsu", "Raiden (set 1)", 0 )
635GAME( 1990, raidena,  raiden, raiden,  raiden, raiden_state,  raiden,  ROT270, "Seibu Kaihatsu", "Raiden (set 2)", 0 )
636GAME( 1990, raidenu,  raiden, raiden,  raiden, raiden_state,  raiden,  ROT270, "Seibu Kaihatsu (Fabtek license)", "Raiden (US set 1)", 0 )
637GAME( 1990, raident,  raiden, raiden,  raiden, raiden_state,  raiden,  ROT270, "Seibu Kaihatsu (Liang HWA Electronics license)", "Raiden (Taiwan)", 0 )
634GAME( 1990, raiden,   0,      raiden,  raiden, raiden_state,  raiden,  ROT270, "Seibu Kaihatsu", "Raiden (set 1)", GAME_SUPPORTS_SAVE )
635GAME( 1990, raidena,  raiden, raiden,  raiden, raiden_state,  raiden,  ROT270, "Seibu Kaihatsu", "Raiden (set 2)", GAME_SUPPORTS_SAVE )
636GAME( 1990, raidenu,  raiden, raiden,  raiden, raiden_state,  raiden,  ROT270, "Seibu Kaihatsu (Fabtek license)", "Raiden (US set 1)", GAME_SUPPORTS_SAVE )
637GAME( 1990, raident,  raiden, raiden,  raiden, raiden_state,  raiden,  ROT270, "Seibu Kaihatsu (Liang HWA Electronics license)", "Raiden (Taiwan)", GAME_SUPPORTS_SAVE )
638638
639639/* Same as above, but the sound CPU code is not encrypted */
640GAME( 1990, raidenk,  raiden, raiden,  raiden, raiden_state,  raidenk, ROT270, "Seibu Kaihatsu (IBL Corporation license)", "Raiden (Korea)", 0 )
640GAME( 1990, raidenk,  raiden, raiden,  raiden, raiden_state,  raidenk, ROT270, "Seibu Kaihatsu (IBL Corporation license)", "Raiden (Korea)", GAME_SUPPORTS_SAVE )
641641
642642/* Alternate hardware; SEI8904 + SEI9008 PCBs. Main & Sub CPU code not encrypted */
643GAME( 1990, raidenua, raiden, raidenu, raiden, raiden_state,  raidenu, ROT270, "Seibu Kaihatsu (Fabtek license)", "Raiden (US set 2)", 0 )
643GAME( 1990, raidenua, raiden, raidenu, raiden, raiden_state,  raidenu, ROT270, "Seibu Kaihatsu (Fabtek license)", "Raiden (US set 2)", GAME_SUPPORTS_SAVE )
644644
645645/* Alternate hardware. Main, Sub & Sound CPU code not encrypted - could possibly be a bootleg?? It also sports Seibu custom CRTC. */
646GAME( 1990, raidenb,  raiden, raidenb, raiden, driver_device, 0,       ROT270, "Seibu Kaihatsu", "Raiden (set 3)", 0 )
646GAME( 1990, raidenb,  raiden, raidenb, raiden, driver_device, 0,       ROT270, "Seibu Kaihatsu", "Raiden (set 3)", GAME_SUPPORTS_SAVE )
trunk/src/mame/includes/raiden.h
r243321r243322
1414      : driver_device(mconfig, type, tag),
1515      m_maincpu(*this, "maincpu"),
1616      m_seibu_sound(*this, "seibu_sound"),
17      m_gfxdecode(*this, "gfxdecode"),
18      m_palette(*this, "palette"),
1719      m_spriteram(*this, "spriteram"),
1820      m_shared_ram(*this, "shared_ram"),
1921      m_videoram(*this, "videoram"),
2022      m_scroll_ram(*this, "scroll_ram"),
2123      m_back_data(*this, "back_data"),
22      m_fore_data(*this, "fore_data"),
23      m_gfxdecode(*this, "gfxdecode"),
24      m_palette(*this, "palette")
24      m_fore_data(*this, "fore_data")
2525   { }
2626
2727   required_device<cpu_device> m_maincpu;
2828   required_device<seibu_sound_device> m_seibu_sound;
29   required_device<gfxdecode_device> m_gfxdecode;
30   required_device<palette_device> m_palette;
2931   required_device<buffered_spriteram16_device> m_spriteram;
32   
3033   required_shared_ptr<UINT16> m_shared_ram;
3134   required_shared_ptr<UINT16> m_videoram;
3235   optional_shared_ptr<UINT16> m_scroll_ram;
3336   required_shared_ptr<UINT16> m_back_data;
3437   required_shared_ptr<UINT16> m_fore_data;
35   required_device<gfxdecode_device> m_gfxdecode;
36   required_device<palette_device> m_palette;
3738
3839   tilemap_t *m_bg_layer;
3940   tilemap_t *m_fg_layer;
r243321r243322
5556   DECLARE_DRIVER_INIT(raidenu);
5657   DECLARE_DRIVER_INIT(raidenk);
5758   DECLARE_DRIVER_INIT(raiden);
59   
5860   TILE_GET_INFO_MEMBER(get_back_tile_info);
5961   TILE_GET_INFO_MEMBER(get_fore_tile_info);
6062   TILE_GET_INFO_MEMBER(get_text_tile_info);
63   
6164   virtual void video_start();
6265   DECLARE_VIDEO_START(raidenb);
66   
6367   UINT32 screen_update_common(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, UINT16 *scrollregs);
6468   UINT32 screen_update_raiden(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
6569   UINT32 screen_update_raidenb(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
70   
6671   INTERRUPT_GEN_MEMBER(raiden_interrupt);
72   
6773   void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect, int pri_mask);
6874   void common_decrypt();
6975};
trunk/src/mame/video/raiden.c
r243321r243322
228228
229229   m_fg_layer->set_transparent_pen(15);
230230   m_tx_layer->set_transparent_pen(15);
231
232   save_item(NAME(m_bg_layer_enabled));
233   save_item(NAME(m_fg_layer_enabled));
234   save_item(NAME(m_tx_layer_enabled));
235   save_item(NAME(m_sp_layer_enabled));
236   save_item(NAME(m_flipscreen));
231237}
232238
233239VIDEO_START_MEMBER(raiden_state,raidenb)
r243321r243322
238244
239245   m_fg_layer->set_transparent_pen(15);
240246   m_tx_layer->set_transparent_pen(15);
247
248   save_item(NAME(m_bg_layer_enabled));
249   save_item(NAME(m_fg_layer_enabled));
250   save_item(NAME(m_tx_layer_enabled));
251   save_item(NAME(m_sp_layer_enabled));
252   save_item(NAME(m_flipscreen));
253   save_item(NAME(m_raidenb_scroll_ram));
241254}


Previous 199869 Revisions Next


© 1997-2024 The MAME Team