diff options
author | Jamieson Christian | 2002-12-21 20:10:47 +0000 |
---|---|---|
committer | Jamieson Christian | 2002-12-21 20:10:47 +0000 |
commit | f60bda7d5ccbb721f716c61434b23956e573403e (patch) | |
tree | 1210aca5150c02d37552ee4f2a8e368e6b68a18e /scumm/instrument.cpp | |
parent | 0182836591273b19abbeafd9ad2760fc0738a5e8 (diff) | |
download | scummvm-rg350-f60bda7d5ccbb721f716c61434b23956e573403e.tar.gz scummvm-rg350-f60bda7d5ccbb721f716c61434b23956e573403e.tar.bz2 scummvm-rg350-f60bda7d5ccbb721f716c61434b23956e573403e.zip |
Implemented new instrumentation save/load.
Save/load version is now VER_V11.
Adlib/MT-32 instrumentation is now saved and loaded.
BACK UP YOUR VER_V10 SAVEGAMES, JUST IN CASE!
svn-id: r6044
Diffstat (limited to 'scumm/instrument.cpp')
-rw-r--r-- | scumm/instrument.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/scumm/instrument.cpp b/scumm/instrument.cpp index e8201ab8d7..c2ebaffb1f 100644 --- a/scumm/instrument.cpp +++ b/scumm/instrument.cpp @@ -330,8 +330,13 @@ Instrument_Program::Instrument_Program (Serializer *s) void Instrument_Program::saveOrLoad (Serializer *s) { - _program = s->loadByte(); - _mt32 = (s->loadByte() > 0); + if (s->isSaving()) { + s->saveByte (_program); + s->saveByte (_mt32 ? 1 : 0); + } else { + _program = s->loadByte(); + _mt32 = (s->loadByte() > 0); + } } void Instrument_Program::send (MidiChannel *mc) |