From 2c861d8e99f2ecca3608b9f3c655f343a0c600e9 Mon Sep 17 00:00:00 2001 From: iq_132 <1191709+iq132@users.noreply.github.com> Date: Sat, 11 Jan 2014 00:34:16 +0000 Subject: [PATCH] Fix sound for dw2001 & dwpc --- src/burn/drv/pgm/d_pgm.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/burn/drv/pgm/d_pgm.cpp b/src/burn/drv/pgm/d_pgm.cpp index 1ba3ec459..aae85506e 100644 --- a/src/burn/drv/pgm/d_pgm.cpp +++ b/src/burn/drv/pgm/d_pgm.cpp @@ -2824,9 +2824,17 @@ static struct BurnRomInfo dw2001RomDesc[] = { STDROMPICKEXT(dw2001, dw2001, pgm) STD_ROM_FN(dw2001) +static void dw2001Callback() +{ + pgm_decrypt_martmast(); + + // add proper fix to rom loading routines at a later date + memcpy (ICSSNDROM + 0x200000, ICSSNDROM + 0x400000, 0x200000); +} + static INT32 dw2001Init() { - pPgmInitCallback = pgm_decrypt_martmast; + pPgmInitCallback = dw2001Callback; pPgmProtCallback = install_protection_asic27a_martmast; INT32 nRet = pgmInit();