mirror of https://github.com/snes9xgit/snes9x.git
Save a few more mmapped registers to SPC files. Fix key-on trigger.
This commit is contained in:
parent
2b5a54b401
commit
baa4de3713
|
@ -492,8 +492,6 @@ bool8 S9xInitAPU (void)
|
|||
spc::shrink_buffer = NULL;
|
||||
spc::resampler = NULL;
|
||||
|
||||
SNES::dsp.spc_dsp.set_spc_snapshot_callback(SPCSnapshotCallback);
|
||||
|
||||
return (TRUE);
|
||||
}
|
||||
|
||||
|
@ -590,6 +588,7 @@ void S9xResetAPU (void)
|
|||
SNES::smp.power ();
|
||||
SNES::dsp.power ();
|
||||
SNES::dsp.spc_dsp.set_output ((SNES::SPC_DSP::sample_t *) spc::landing_buffer, spc::buffer_size >> 1);
|
||||
SNES::dsp.spc_dsp.set_spc_snapshot_callback(SPCSnapshotCallback);
|
||||
|
||||
spc::resampler->clear();
|
||||
}
|
||||
|
|
|
@ -48,7 +48,7 @@ void SMP::save_spc (uint8 *block) {
|
|||
memset (out.id666, 0, 210);
|
||||
memcpy (out.apuram, apuram, 65536);
|
||||
|
||||
for (int i = 0xf2; i <= 0xf7; i++)
|
||||
for (int i = 0xf2; i <= 0xf9; i++)
|
||||
{
|
||||
out.apuram[i] = mmio_read (i);
|
||||
}
|
||||
|
|
|
@ -157,6 +157,7 @@ S9xGetDirectory (enum s9x_getdirtype dirtype)
|
|||
case SCREENSHOT_DIR:
|
||||
case SPC_DIR:
|
||||
sprintf (path, "%s", gui_config->export_directory);
|
||||
break;
|
||||
|
||||
default:
|
||||
path[0] = '\0';
|
||||
|
|
Loading…
Reference in New Issue