diff options
| author | 2021-04-13 18:18:55 -0700 | |
|---|---|---|
| committer | 2021-04-13 18:18:55 -0700 | |
| commit | 889693e57e99a2d7d149aa60fc1de3036aa9f0ad (patch) | |
| tree | 88795e7511c4e2435b0679968cd48cb2527889c9 /src/devices/sound/ym2203.cpp | |
| parent | 8fb0991e0372ce92ff4cb19c71e719f0421b1dae (diff) | |
Add support for std::array and for custom types that map to integers/FP values. Fix up ymfm-related saving. Modernize AY8910 saving.
Diffstat (limited to 'src/devices/sound/ym2203.cpp')
| -rw-r--r-- | src/devices/sound/ym2203.cpp | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/src/devices/sound/ym2203.cpp b/src/devices/sound/ym2203.cpp index d2e5e61fb03..13fe2bf43ad 100644 --- a/src/devices/sound/ym2203.cpp +++ b/src/devices/sound/ym2203.cpp @@ -108,11 +108,24 @@ void ym2203_device::device_start() // create our stream m_stream = stream_alloc(0, fm_engine::OUTPUTS, m_fm.sample_rate(clock())); - // save our data - save_item(YMFM_NAME(m_address)); + // initialize the FM engine + m_fm.init(); +} + - // save the FM engine - m_fm.save(*this); +//------------------------------------------------- +// device_register_save - register for save state +//------------------------------------------------- + +void ym2203_device::device_register_save(save_registrar &save) +{ + // call our parent + save_registrar container(save, "psg"); + ay8910_device::device_register_save(container); + + // save our data + save.reg(NAME(m_address)) + .reg(NAME(m_fm)); } |
