summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author smf- <smf-@users.noreply.github.com>2018-07-30 15:49:05 +0100
committer smf- <smf-@users.noreply.github.com>2018-07-30 15:49:05 +0100
commit3e6a85745b70e7c67d217f0d0851d2d1c034b3d4 (patch)
tree6d26db260e9688223ec806fae8428f37e17ec82d
parent6f4d3570bcee39592862fd65824300ef02f2eee5 (diff)
vgmplay don't need to set nes apu clock as it's derived & disable the nes cpu as it's not used. (nw)
-rw-r--r--src/mame/drivers/vgmplay.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mame/drivers/vgmplay.cpp b/src/mame/drivers/vgmplay.cpp
index 238a0905843..e679fc47c86 100644
--- a/src/mame/drivers/vgmplay.cpp
+++ b/src/mame/drivers/vgmplay.cpp
@@ -1771,8 +1771,9 @@ QUICKLOAD_LOAD_MEMBER(vgmplay_state, load_file)
if (version >= 0x161 && data_start >= 0x84 && (r32(0x80) & 0x40000000))
logerror("Warning: file requests an unsupported 2nd DMG\n");
- m_nescpu->set_unscaled_clock(version >= 0x161 && data_start >= 0x88 ? r32(0x84) & ~0x40000000 : 0);
- m_nescpu->m_apu->set_unscaled_clock(version >= 0x161 && data_start >= 0x88 ? r32(0x84) & ~0x40000000 : 0);
+ m_nescpu->set_unscaled_clock(version >= 0x161 && data_start >= 0x88 ? r32(0x84) & ~0xc0000000 : 0);
+ if (version >= 0x161 && data_start >= 0x88 && (r32(0x84) & 0x80000000))
+ logerror("Warning: file requests an unsupported FDS sound addon\n");
if (version >= 0x161 && data_start >= 0x88 && (r32(0x84) & 0x40000000))
logerror("Warning: file requests an unsupported 2nd NES APU\n");
@@ -2376,6 +2377,7 @@ MACHINE_CONFIG_START(vgmplay_state::vgmplay)
MCFG_DEVICE_ADD("nescpu", N2A03, 0)
MCFG_DEVICE_PROGRAM_MAP(nescpu_map<0>)
+ MCFG_DEVICE_DISABLE()
MCFG_DEVICE_MODIFY("nescpu:nesapu")
MCFG_SOUND_ROUTES_RESET()