From f60bda7d5ccbb721f716c61434b23956e573403e Mon Sep 17 00:00:00 2001 From: Jamieson Christian Date: Sat, 21 Dec 2002 20:10:47 +0000 Subject: 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 --- scumm/instrument.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'scumm/instrument.cpp') 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) -- cgit v1.2.3