Skip to content

Commit

Permalink
add Lightning (Free Play & MOD rev. 27), part of #385
Browse files Browse the repository at this point in the history
toxieainc committed Dec 14, 2024
1 parent 2bb1803 commit 3f10196
Showing 4 changed files with 16 additions and 5 deletions.
2 changes: 1 addition & 1 deletion release/whatsnew.txt
Original file line number Diff line number Diff line change
@@ -187,7 +187,7 @@ House of Diamonds (Free Play)
Jungle Lord (new tricks) L-2beta, L-2 & L-3beta (MOD)
La Rana (alternate set)
Last Action Hero 1.08 Spanish with Display 1.05 (not working correctly :/)
Lightning (Free Play & MOD rev. 25)
Lightning (Free Play & MOD rev. 25), (Free Play & MOD rev. 27)
Locomotion (Free Play)
Metallica 0.52
Mexico 86 (Italian Speech)
1 change: 1 addition & 0 deletions src/wpc/driver.c
Original file line number Diff line number Diff line change
@@ -1526,6 +1526,7 @@ DRIVERNV(lightnin) //MPU-200: 03/81 Lightning
DRIVERNV(lightnfp) // 03/81 Lightning (Free Play)
DRIVERNV(lightnib) // 09/21 Lightning (Free Play & MOD rev. 19)
DRIVERNV(lightnic) // 10/22 Lightning (Free Play & MOD rev. 25)
DRIVERNV(lightnid) // 12/24 Lightning (Free Play & MOD rev. 27)
DRIVERNV(splitsec) //MPU-200: 08/81 Split Second
DRIVERNV(splitsfp) // 08/81 Split Second (Free Play)
DRIVERNV(catacomb) //MPU-200: 10/81 Catacomb
11 changes: 11 additions & 0 deletions src/wpc/stgames.c
Original file line number Diff line number Diff line change
@@ -1096,6 +1096,17 @@ BY35_ROMEND
#define input_ports_lightnic input_ports_st
CORE_CLONEDEFNV(lightnic,lightnin,"Lightning (Free Play & MOD rev. 25)",2022,"Stern / Idleman",by35_mST200v,0)

INITGAME(lightnid,GEN_STMPU200,dispLightnin,FLIP_SW(FLIP_L),0,SNDBRD_ST300V,0)
ST200_ROMSTART8888(lightnid,"light_V27-u1.716",CRC(41ff4fae) SHA1(796bda930e2a010d18491a803b32af8e6acae304),
"light_V27-u5.716",CRC(7b0875cf) SHA1(c91090a7c8e177579b6509ac7537c492aead3f08),
"light_V27-u2.716",CRC(c125f224) SHA1(421c6446ed4af8fc3a771e2d58f11858f6dc1326),
"light_V27-u6.716",CRC(2e8acbcb) SHA1(41f00404268676dadd05dd64cf32c97b35c5fb4c))
VSU100_SOUNDROM_U9U10( "snd_u9.716", CRC(00ffa77c) SHA1(242efd800731a7f84369c6ce54298d0a227dd8ba),
"snd_u10.716", CRC(80fe9158) SHA1(20fcdb4c09b25e494f02bbfb20c07ff2870d5798))
BY35_ROMEND
#define input_ports_lightnid input_ports_st
CORE_CLONEDEFNV(lightnid,lightnin,"Lightning (Free Play & MOD rev. 27)",2024,"Stern / Idleman",by35_mST200v,0)

/*--------------------------------
/ Split Second
/-------------------------------*/
7 changes: 3 additions & 4 deletions src/wpc/wpc.c
Original file line number Diff line number Diff line change
@@ -1173,11 +1173,10 @@ static MACHINE_INIT(wpc) {
case GEN_WPCALPHA_2:
case GEN_WPCDMD:
case GEN_WPCFLIPTRON:
// Pre DCS sound board A-12738 may generate FIRQ on data ready if W1 jumper is soldered but so far, I didn't find any game with W1 soldered
// Pre DCS sound board A-12738 may generate a FIRQ on data ready if W1 jumper is soldered, but so far, I didn't find any game with W1 soldered
// and inspected gamecode only managed FIRQ coming from WPC or DMD. Moreover, if enabling, this would break the DMD timing as the gamecode
// would mistakenly consider sound FIRQ as a DMD FIRQ, breaking display during score in lots of games.
// sndbrd_0_init(SNDBRD_WPCS, 1, memory_region(WPCS_ROMREGION), snd_data_cb, NULL);
sndbrd_0_init(SNDBRD_WPCS, 1, memory_region(WPCS_ROMREGION), NULL, NULL);
// would mistakenly consider sound a FIRQ as a DMD FIRQ, breaking display during score in lots of games.
sndbrd_0_init(SNDBRD_WPCS, 1, memory_region(WPCS_ROMREGION), NULL /*snd_data_cb*/, NULL);
break;
case GEN_WPCDCS:
case GEN_WPCSECURITY:

0 comments on commit 3f10196

Please sign in to comment.