diff --git a/.gitattributes b/.gitattributes index c7fb9d2bf19..12224babf9a 100644 --- a/.gitattributes +++ b/.gitattributes @@ -2544,6 +2544,7 @@ src/mame/layout/pmpoker.lay svneol=native#text/plain src/mame/layout/pmroulet.lay -text svneol=native#plain/text src/mame/layout/poker41.lay svneol=native#text/plain src/mame/layout/pokio.lay svneol=native#text/plain +src/mame/layout/polepos.lay svneol=native#text/plain src/mame/layout/pulltabs.lay svneol=native#text/plain src/mame/layout/pyramid.lay svneol=native#text/plain src/mame/layout/quintoon.lay svneol=native#text/plain diff --git a/src/mame/drivers/polepos.c b/src/mame/drivers/polepos.c index f729d1e0dd1..2a7398630cf 100644 --- a/src/mame/drivers/polepos.c +++ b/src/mame/drivers/polepos.c @@ -223,6 +223,8 @@ Notes: #include "polepos.h" #include "nam_cust.h" +#include "polepos.lh" + #define POLEPOS_TOGGLE PORT_TOGGLE @@ -874,6 +876,7 @@ static MACHINE_DRIVER_START( polepos ) MDRV_GFXDECODE(polepos) MDRV_PALETTE_LENGTH(0x0f00) + MDRV_DEFAULT_LAYOUT(layout_polepos) MDRV_PALETTE_INIT(polepos) MDRV_VIDEO_START(polepos) @@ -1772,4 +1775,3 @@ GAME( 1983, topracrb, polepos, polepos, polepos, polepos, ROT0, "bootleg", "To GAME( 1983, polepos2, 0, polepos, polepos2, polepos2, ROT0, "Namco", "Pole Position II", 0 ) GAME( 1983, poleps2a, polepos2, polepos, polepos2, polepos2, ROT0, "Namco (Atari license)", "Pole Position II (Atari)", 0 ) GAME( 1983, poleps2b, polepos2, polepos, polepos2, polepos, ROT0, "bootleg", "Pole Position II (bootleg)", 0 ) - diff --git a/src/mame/layout/polepos.lay b/src/mame/layout/polepos.lay new file mode 100644 index 00000000000..ac80a38ec1e --- /dev/null +++ b/src/mame/layout/polepos.lay @@ -0,0 +1,68 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/mame/mame.mak b/src/mame/mame.mak index f82d62c029b..02d4c6df0f0 100644 --- a/src/mame/mame.mak +++ b/src/mame/mame.mak @@ -1771,6 +1771,8 @@ $(DRIVERS)/peplus.o: $(LAYOUT)/peplus.lh \ $(LAYOUT)/pe_keno.lh \ $(LAYOUT)/pe_slots.lh +$(DRIVERS)/polepos.o: $(LAYOUT)/polepos.lh + $(DRIVERS)/qix.o: $(LAYOUT)/elecyoyo.lh $(DRIVERS)/re900.o: $(LAYOUT)/re900.lh diff --git a/src/mame/video/polepos.c b/src/mame/video/polepos.c index 607214a25a5..2fb015f5fa6 100644 --- a/src/mame/video/polepos.c +++ b/src/mame/video/polepos.c @@ -515,18 +515,5 @@ VIDEO_UPDATE( polepos ) draw_road(screen->machine, bitmap); draw_sprites(screen->machine, bitmap,cliprect); tilemap_draw(bitmap,cliprect,tx_tilemap,0,0); -/* following code should be enabled only in a debug build */ -/* original arcade doesn't work in this way */ -#ifdef MAME_DEBUG - { - int in = input_port_read(screen->machine, "IN0"); - static int lastin; - - if ((in ^ lastin) & polepos_gear_bit) - popmessage((in & polepos_gear_bit) ? "LO" : "HI"); - - lastin = in; - } -#endif return 0; }