From 5cf00d8ced38bec208b1dd57c836b3677bba96cf Mon Sep 17 00:00:00 2001 From: Ryan Holtz Date: Sat, 19 Sep 2009 21:39:25 +0000 Subject: [PATCH] Fixes an issue where running ST010 games would hang MESS. [Harmony] --- src/mame/machine/snes.c | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/src/mame/machine/snes.c b/src/mame/machine/snes.c index d9c127e9e5e..759fda12a30 100644 --- a/src/mame/machine/snes.c +++ b/src/mame/machine/snes.c @@ -2130,9 +2130,19 @@ MACHINE_START( snes ) snes_ram[WRDIVL] = 0xff; snes_ram[WRDIVH] = 0xff; - sdd1_init(machine); - spc7110_init(machine); - st010_init(machine); + switch(snes_has_addon_chip) + { + case HAS_SDD1: + sdd1_init(machine); + break; + case HAS_SPC7110: + case HAS_SPC7110_RTC: + spc7110_init(machine); + break; + case HAS_ST010: + st010_init(machine); + break; + } } MACHINE_RESET( snes )