From 53b763170a99d30eaaba2d414570c4fec4f251a8 Mon Sep 17 00:00:00 2001 From: David Haywood Date: Wed, 7 Oct 2015 03:21:50 +0100 Subject: [PATCH] kill some no longer required code (nw) --- src/mame/drivers/m92.c | 20 +++++--------------- src/mame/includes/m92.h | 2 -- 2 files changed, 5 insertions(+), 17 deletions(-) diff --git a/src/mame/drivers/m92.c b/src/mame/drivers/m92.c index c007d3d9174..c6369d9f56e 100644 --- a/src/mame/drivers/m92.c +++ b/src/mame/drivers/m92.c @@ -2155,17 +2155,7 @@ DRIVER_INIT_MEMBER(m92_state,m92) m_game_kludge = 0; } -/* different vector base */ -DRIVER_INIT_MEMBER(m92_state,m92_alt) -{ - UINT8 *ROM = memregion("maincpu")->base(); - - membank("bank1")->set_base(&ROM[0xa0000]); - - m_game_kludge = 0; -} - -/* different vector base, different address map (no bank1) */ +/* different address map (no bank1) */ DRIVER_INIT_MEMBER(m92_state,lethalth) { m_game_kludge = 0; @@ -2239,8 +2229,8 @@ GAME( 1992, hooku, hook, hook, hook, m92_state, m92, RO GAME( 1992, hookj, hook, hook, hook, m92_state, m92, ROT0, "Irem", "Hook (Japan)", MACHINE_SUPPORTS_SAVE | MACHINE_NO_COCKTAIL) GAME( 1992, ppan, hook, ppan, hook, m92_state, ppan, ROT0, "bootleg", "Peter Pan (bootleg of Hook)", MACHINE_IMPERFECT_GRAPHICS | MACHINE_NO_COCKTAIL) // PCB marked 'Peter Pan', no title screen, made in Italy? -GAME( 1992, rtypeleo, 0, rtypeleo, rtypeleo, m92_state, m92_alt, ROT0, "Irem", "R-Type Leo (World)", MACHINE_SUPPORTS_SAVE | MACHINE_NO_COCKTAIL) -GAME( 1992, rtypeleoj,rtypeleo, rtypeleo, rtypeleo, m92_state, m92_alt, ROT0, "Irem", "R-Type Leo (Japan)", MACHINE_SUPPORTS_SAVE | MACHINE_NO_COCKTAIL) +GAME( 1992, rtypeleo, 0, rtypeleo, rtypeleo, m92_state, m92, ROT0, "Irem", "R-Type Leo (World)", MACHINE_SUPPORTS_SAVE | MACHINE_NO_COCKTAIL) +GAME( 1992, rtypeleoj,rtypeleo, rtypeleo, rtypeleo, m92_state, m92, ROT0, "Irem", "R-Type Leo (Japan)", MACHINE_SUPPORTS_SAVE | MACHINE_NO_COCKTAIL) GAME( 1993, inthunt, 0, inthunt, inthunt, m92_state, m92, ROT0, "Irem", "In The Hunt (World)", MACHINE_SUPPORTS_SAVE | MACHINE_NO_COCKTAIL) GAME( 1993, inthuntu, inthunt, inthunt, inthunt, m92_state, m92, ROT0, "Irem America", "In The Hunt (US)", MACHINE_SUPPORTS_SAVE | MACHINE_NO_COCKTAIL) @@ -2251,8 +2241,8 @@ GAME( 1993, nbbatmanu,nbbatman, nbbatman, nbbatman, m92_state, m92_bank, RO GAME( 1993, leaguemn, nbbatman, nbbatman, nbbatman, m92_state, m92_bank, ROT0, "Irem", "Yakyuu Kakutou League-Man (Japan)", MACHINE_SUPPORTS_SAVE | MACHINE_IMPERFECT_GRAPHICS | MACHINE_NO_COCKTAIL ) GAME( 1993, nbbatman2bl,nbbatman,nbbatman2bl, nbbatman, m92_state, m92_bank, ROT0, "bootleg", "Ninja Baseball Bat Man II (bootleg)", MACHINE_NO_SOUND | MACHINE_NOT_WORKING | MACHINE_NO_COCKTAIL ) // different sprite system, MCU as soundcpu, OKI samples for music/sound -GAME( 1993, ssoldier, 0, psoldier, psoldier, m92_state, m92_alt, ROT0, "Irem America", "Superior Soldiers (US)", MACHINE_SUPPORTS_SAVE | MACHINE_NO_COCKTAIL ) -GAME( 1993, psoldier, ssoldier, psoldier, psoldier, m92_state, m92_alt, ROT0, "Irem", "Perfect Soldiers (Japan)", MACHINE_SUPPORTS_SAVE | MACHINE_NO_COCKTAIL ) +GAME( 1993, ssoldier, 0, psoldier, psoldier, m92_state, m92, ROT0, "Irem America", "Superior Soldiers (US)", MACHINE_SUPPORTS_SAVE | MACHINE_NO_COCKTAIL ) +GAME( 1993, psoldier, ssoldier, psoldier, psoldier, m92_state, m92, ROT0, "Irem", "Perfect Soldiers (Japan)", MACHINE_SUPPORTS_SAVE | MACHINE_NO_COCKTAIL ) GAME( 1994, dsoccr94j,dsoccr94, dsoccr94j, dsoccr94j, m92_state,m92_bank, ROT0, "Irem", "Dream Soccer '94 (Japan, M92 hardware)", MACHINE_SUPPORTS_SAVE | MACHINE_NO_COCKTAIL ) diff --git a/src/mame/includes/m92.h b/src/mame/includes/m92.h index 7103c9dfd65..a4a3969565e 100644 --- a/src/mame/includes/m92.h +++ b/src/mame/includes/m92.h @@ -54,7 +54,6 @@ public: IRQ_CALLBACK_MEMBER(m92_irq_callback); UINT16 m_sound_status; - UINT8 m_irq_vectorbase; UINT32 m_raster_irq_position; UINT16 m_videocontrol; UINT8 m_sprite_buffer_busy; @@ -88,7 +87,6 @@ public: DECLARE_WRITE16_MEMBER(oki_bank_w); DECLARE_DRIVER_INIT(majtitl2); DECLARE_DRIVER_INIT(ppan); - DECLARE_DRIVER_INIT(m92_alt); DECLARE_DRIVER_INIT(lethalth); DECLARE_DRIVER_INIT(m92); DECLARE_DRIVER_INIT(m92_bank);