diff options
Diffstat (limited to 'src/mame/drivers/groundfx.cpp')
-rw-r--r-- | src/mame/drivers/groundfx.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mame/drivers/groundfx.cpp b/src/mame/drivers/groundfx.cpp index 90ca7f1b34a..7db844de78d 100644 --- a/src/mame/drivers/groundfx.cpp +++ b/src/mame/drivers/groundfx.cpp @@ -356,17 +356,17 @@ READ32_MEMBER(groundfx_state::irq_speedup_r) } -DRIVER_INIT_MEMBER(groundfx_state,groundfx) +void groundfx_state::init_groundfx() { uint8_t *gfx = memregion("gfx3")->base(); - int size=memregion("gfx3")->bytes(); + int size = memregion("gfx3")->bytes(); /* Speedup handlers */ m_maincpu->space(AS_PROGRAM).install_read_handler(0x20b574, 0x20b577, read32_delegate(FUNC(groundfx_state::irq_speedup_r),this)); /* make SCC tile GFX format suitable for gfxdecode */ uint32_t offset = size/2; - for (uint32_t i = size/2+size/4; i<size; i++) + for (uint32_t i = size/2 + size/4; i < size; i++) { /* Expand 2bits into 4bits format */ int data = gfx[i]; @@ -384,4 +384,4 @@ DRIVER_INIT_MEMBER(groundfx_state,groundfx) } -GAME( 1992, groundfx, 0, groundfx, groundfx, groundfx_state, groundfx, ROT0, "Taito Corporation", "Ground Effects / Super Ground Effects (Japan)", MACHINE_NODEVICE_LAN ) +GAME( 1992, groundfx, 0, groundfx, groundfx, groundfx_state, init_groundfx, ROT0, "Taito Corporation", "Ground Effects / Super Ground Effects (Japan)", MACHINE_NODEVICE_LAN ) |