From 1b4edd5034cef8a4792cef5b46ba28bfff96bf1b Mon Sep 17 00:00:00 2001 From: Vincent Bousquet Date: Mon, 13 Jan 2025 21:40:10 +0100 Subject: [PATCH] Tron: really fix LE/Pro bulb definition --- src/wpc/sam.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wpc/sam.c b/src/wpc/sam.c index 542d38f82..4c0f21ac6 100644 --- a/src/wpc/sam.c +++ b/src/wpc/sam.c @@ -1413,7 +1413,7 @@ static MACHINE_INIT(sam) { core_set_pwm_output_type(CORE_MODOUT_LAMP0 + 100, 6, CORE_MODOUT_LED); // Ramp RGB LEDs core_set_pwm_output_type(CORE_MODOUT_SOL0 + 17 - 1, 5, CORE_MODOUT_BULB_89_20V_DC_WPC); core_set_pwm_output_type(CORE_MODOUT_SOL0 + 25 - 1, 8, CORE_MODOUT_BULB_89_20V_DC_WPC); - if (gn[strlen(gn)-1] == 'h') + if (Machine->gamedrv->name[strlen(Machine->gamedrv->name)-1] == 'h') core_set_pwm_output_type(CORE_MODOUT_LAMP0, 80, CORE_MODOUT_LED_STROBE_1_10MS); // Limited Edition: All LED else core_set_pwm_output_type(CORE_MODOUT_LAMP0 + 60 - 1, 3, CORE_MODOUT_LED_STROBE_1_10MS); // Pro: #555 except for bumper LEDs