mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
47 lines
1.4 KiB
C++
47 lines
1.4 KiB
C++
/* ScummVM - Graphic Adventure Engine
|
|
*
|
|
* ScummVM is the legal property of its developers, whose names
|
|
* are too numerous to list here. Please refer to the COPYRIGHT
|
|
* file distributed with this source distribution.
|
|
*
|
|
* This program is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
*
|
|
*/
|
|
|
|
#include "got/data/setup.h"
|
|
|
|
namespace Got {
|
|
|
|
void SETUP::sync(Common::Serializer &s) {
|
|
// Sync the flags bit-fields
|
|
assert(((byte *)&value - (byte *)this) == 8);
|
|
s.syncBytes((byte *)this, 8);
|
|
|
|
s.syncBytes(value, 16);
|
|
s.syncAsByte(junk);
|
|
s.syncAsByte(game);
|
|
s.syncAsByte(area);
|
|
s.syncAsByte(pc_sound);
|
|
s.syncAsByte(dig_sound);
|
|
s.syncAsByte(music);
|
|
s.syncAsByte(speed);
|
|
s.syncAsByte(scroll_flag);
|
|
s.syncBytes(boss_dead, 3);
|
|
s.syncAsByte(skill);
|
|
s.syncAsByte(game_over);
|
|
s.syncBytes(future, 19);
|
|
}
|
|
|
|
} // namespace Got
|