summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/wecleman.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/wecleman.cpp')
-rw-r--r--src/mame/drivers/wecleman.cpp22
1 files changed, 10 insertions, 12 deletions
diff --git a/src/mame/drivers/wecleman.cpp b/src/mame/drivers/wecleman.cpp
index d8e09cbf049..3be1b590052 100644
--- a/src/mame/drivers/wecleman.cpp
+++ b/src/mame/drivers/wecleman.cpp
@@ -1369,10 +1369,8 @@ void wecleman_state::bitswap(uint8_t *src,size_t len,int _14,int _13,int _12,int
}
/* Unpack sprites data and do some patching */
-DRIVER_INIT_MEMBER(wecleman_state,wecleman)
+void wecleman_state::init_wecleman()
{
- int i, len;
- uint8_t *RAM;
// uint16_t *RAM1 = (uint16_t *) memregion("maincpu")->base(); /* Main CPU patches */
// RAM1[0x08c2/2] = 0x601e; // faster self test
@@ -1383,9 +1381,9 @@ DRIVER_INIT_MEMBER(wecleman_state,wecleman)
I hope you'll appreciate this effort! */
/* let's swap even and odd *pixels* of the sprites */
- RAM = m_sprite_region;
- len = m_sprite_region.length();
- for (i = 0; i < len; i ++)
+ uint8_t *RAM = m_sprite_region;
+ int len = m_sprite_region.length();
+ for (int i = 0; i < len; i ++)
{
/* TODO: could be wrong, colors have to be fixed. */
/* The only certain thing is that 87 must convert to f0 */
@@ -1677,7 +1675,7 @@ void wecleman_state::hotchase_sprite_decode( int num16_banks, int bank_size )
}
/* Unpack sprites data and do some patching */
-DRIVER_INIT_MEMBER(wecleman_state,hotchase)
+void wecleman_state::init_hotchase()
{
// uint16_t *RAM1 = (uint16_t) memregion("maincpu")->base(); /* Main CPU patches */
// RAM[0x1140/2] = 0x0015; RAM[0x195c/2] = 0x601A; // faster self test
@@ -1694,10 +1692,10 @@ DRIVER_INIT_MEMBER(wecleman_state,hotchase)
Game driver(s)
***************************************************************************/
-GAMEL( 1986, wecleman, 0, wecleman, wecleman, wecleman_state, wecleman, ROT0, "Konami", "WEC Le Mans 24 (v2.00, set 1)", 0, layout_wecleman )
-GAMEL( 1986, weclemana, wecleman, wecleman, wecleman, wecleman_state, wecleman, ROT0, "Konami", "WEC Le Mans 24 (v2.00, set 2)", 0, layout_wecleman ) // 1988 release (maybe date hacked?)
-GAMEL( 1986, weclemanb, wecleman, wecleman, wecleman, wecleman_state, wecleman, ROT0, "Konami", "WEC Le Mans 24 (v1.26)", 0, layout_wecleman )
+GAMEL( 1986, wecleman, 0, wecleman, wecleman, wecleman_state, init_wecleman, ROT0, "Konami", "WEC Le Mans 24 (v2.00, set 1)", 0, layout_wecleman )
+GAMEL( 1986, weclemana, wecleman, wecleman, wecleman, wecleman_state, init_wecleman, ROT0, "Konami", "WEC Le Mans 24 (v2.00, set 2)", 0, layout_wecleman ) // 1988 release (maybe date hacked?)
+GAMEL( 1986, weclemanb, wecleman, wecleman, wecleman, wecleman_state, init_wecleman, ROT0, "Konami", "WEC Le Mans 24 (v1.26)", 0, layout_wecleman )
// a version 1.21 is known to exist too, see https://www.youtube.com/watch?v=4l8vYJi1OeU
-GAMEL( 1988, hotchase, 0, hotchase, hotchase, wecleman_state, hotchase, ROT0, "Konami", "Hot Chase (set 1)", 0, layout_wecleman )
-GAMEL( 1988, hotchasea, hotchase, hotchase, hotchase, wecleman_state, hotchase, ROT0, "Konami", "Hot Chase (set 2)", 0, layout_wecleman )
+GAMEL( 1988, hotchase, 0, hotchase, hotchase, wecleman_state, init_hotchase, ROT0, "Konami", "Hot Chase (set 1)", 0, layout_wecleman )
+GAMEL( 1988, hotchasea, hotchase, hotchase, hotchase, wecleman_state, init_hotchase, ROT0, "Konami", "Hot Chase (set 2)", 0, layout_wecleman )