aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/serializer.h1
-rw-r--r--engines/sci/engine/savegame.cpp6
-rw-r--r--engines/scumm/actor.cpp1
-rw-r--r--engines/scumm/actor.h1
-rw-r--r--engines/scumm/charset.h1
-rw-r--r--engines/scumm/cursor.cpp1
-rw-r--r--engines/scumm/he/sprite_he.cpp1
-rw-r--r--engines/scumm/imuse/imuse.cpp1
-rw-r--r--engines/scumm/imuse/imuse_internal.h1
-rw-r--r--engines/scumm/imuse/imuse_part.cpp1
-rw-r--r--engines/scumm/imuse/imuse_player.cpp1
-rw-r--r--engines/scumm/imuse/instrument.cpp1
-rw-r--r--engines/scumm/imuse_digi/dimuse.cpp1
-rw-r--r--engines/scumm/players/player_ad.cpp1
-rw-r--r--engines/scumm/players/player_mac.h1
-rw-r--r--engines/scumm/saveload.cpp2
-rw-r--r--engines/scumm/saveload.h55
-rw-r--r--engines/scumm/sound.h1
18 files changed, 2 insertions, 76 deletions
diff --git a/common/serializer.h b/common/serializer.h
index 09f36d064b..e8db40923a 100644
--- a/common/serializer.h
+++ b/common/serializer.h
@@ -28,6 +28,7 @@
namespace Common {
+#define VER(x) Common::Serializer::Version(x)
#define SYNC_AS(SUFFIX,TYPE,SIZE) \
template<typename T> \
diff --git a/engines/sci/engine/savegame.cpp b/engines/sci/engine/savegame.cpp
index a7ebe0b4df..9f023c7615 100644
--- a/engines/sci/engine/savegame.cpp
+++ b/engines/sci/engine/savegame.cpp
@@ -61,12 +61,6 @@
namespace Sci {
-
-#define VER(x) Common::Serializer::Version(x)
-
-
-#pragma mark -
-
// These are serialization functions for various objects.
void syncWithSerializer(Common::Serializer &s, Common::Serializable &obj) {
diff --git a/engines/scumm/actor.cpp b/engines/scumm/actor.cpp
index c00e38e91d..004de36c7b 100644
--- a/engines/scumm/actor.cpp
+++ b/engines/scumm/actor.cpp
@@ -31,7 +31,6 @@
#include "scumm/he/intern_he.h"
#include "scumm/object.h"
#include "scumm/resource.h"
-#include "scumm/saveload.h"
#include "scumm/scumm_v7.h"
#include "scumm/scumm_v0.h"
#include "scumm/he/sound_he.h"
diff --git a/engines/scumm/actor.h b/engines/scumm/actor.h
index c059d08397..8a1d8e3f75 100644
--- a/engines/scumm/actor.h
+++ b/engines/scumm/actor.h
@@ -26,7 +26,6 @@
#include "common/scummsys.h"
#include "common/serializer.h"
-#include "scumm/saveload.h"
#include "scumm/scumm.h"
diff --git a/engines/scumm/charset.h b/engines/scumm/charset.h
index 7f3a8baf88..7f697989aa 100644
--- a/engines/scumm/charset.h
+++ b/engines/scumm/charset.h
@@ -28,7 +28,6 @@
#include "graphics/sjis.h"
#include "scumm/scumm.h"
#include "scumm/gfx.h"
-#include "scumm/saveload.h"
namespace Scumm {
diff --git a/engines/scumm/cursor.cpp b/engines/scumm/cursor.cpp
index ab38fa55f8..d7eae60d7b 100644
--- a/engines/scumm/cursor.cpp
+++ b/engines/scumm/cursor.cpp
@@ -31,7 +31,6 @@
#include "scumm/he/intern_he.h"
#include "scumm/object.h"
#include "scumm/he/resource_he.h"
-#include "scumm/saveload.h"
#include "scumm/scumm.h"
#include "scumm/scumm_v2.h"
#include "scumm/scumm_v5.h"
diff --git a/engines/scumm/he/sprite_he.cpp b/engines/scumm/he/sprite_he.cpp
index 16c3b50365..e210e0b6b2 100644
--- a/engines/scumm/he/sprite_he.cpp
+++ b/engines/scumm/he/sprite_he.cpp
@@ -24,7 +24,6 @@
#include "scumm/he/intern_he.h"
#include "scumm/resource.h"
-#include "scumm/saveload.h"
#include "scumm/scumm.h"
#include "scumm/he/sprite_he.h"
#include "scumm/usage_bits.h"
diff --git a/engines/scumm/imuse/imuse.cpp b/engines/scumm/imuse/imuse.cpp
index d083dc8dfd..109125eae6 100644
--- a/engines/scumm/imuse/imuse.cpp
+++ b/engines/scumm/imuse/imuse.cpp
@@ -32,7 +32,6 @@
#include "scumm/imuse/imuse_internal.h"
#include "scumm/imuse/instrument.h"
#include "scumm/resource.h"
-#include "scumm/saveload.h"
#include "scumm/scumm.h"
namespace Scumm {
diff --git a/engines/scumm/imuse/imuse_internal.h b/engines/scumm/imuse/imuse_internal.h
index 7b1d2f65fa..e1e3548802 100644
--- a/engines/scumm/imuse/imuse_internal.h
+++ b/engines/scumm/imuse/imuse_internal.h
@@ -27,7 +27,6 @@
#include "common/serializer.h"
#include "scumm/imuse/imuse.h"
#include "scumm/imuse/instrument.h"
-#include "scumm/saveload.h"
#include "audio/mididrv.h"
class MidiParser;
diff --git a/engines/scumm/imuse/imuse_part.cpp b/engines/scumm/imuse/imuse_part.cpp
index ca0eaa4630..33492a1363 100644
--- a/engines/scumm/imuse/imuse_part.cpp
+++ b/engines/scumm/imuse/imuse_part.cpp
@@ -26,7 +26,6 @@
#include "common/textconsole.h"
#include "common/util.h"
#include "scumm/imuse/imuse_internal.h"
-#include "scumm/saveload.h"
#include "scumm/scumm.h"
namespace Scumm {
diff --git a/engines/scumm/imuse/imuse_player.cpp b/engines/scumm/imuse/imuse_player.cpp
index a4b79f75d3..b4224183ab 100644
--- a/engines/scumm/imuse/imuse_player.cpp
+++ b/engines/scumm/imuse/imuse_player.cpp
@@ -26,7 +26,6 @@
#include "engines/engine.h"
#include "scumm/imuse/imuse_internal.h"
-#include "scumm/saveload.h"
#include "scumm/scumm.h"
#include "audio/midiparser.h"
diff --git a/engines/scumm/imuse/instrument.cpp b/engines/scumm/imuse/instrument.cpp
index 708a98046b..2ae38b1c64 100644
--- a/engines/scumm/imuse/instrument.cpp
+++ b/engines/scumm/imuse/instrument.cpp
@@ -21,7 +21,6 @@
*/
#include "scumm/scumm.h"
-#include "scumm/saveload.h"
#include "scumm/imuse/instrument.h"
#include "audio/mididrv.h"
diff --git a/engines/scumm/imuse_digi/dimuse.cpp b/engines/scumm/imuse_digi/dimuse.cpp
index 9dac8b7662..b6955212a9 100644
--- a/engines/scumm/imuse_digi/dimuse.cpp
+++ b/engines/scumm/imuse_digi/dimuse.cpp
@@ -24,7 +24,6 @@
#include "common/timer.h"
#include "scumm/actor.h"
-#include "scumm/saveload.h"
#include "scumm/scumm_v7.h"
#include "scumm/sound.h"
#include "scumm/imuse_digi/dimuse.h"
diff --git a/engines/scumm/players/player_ad.cpp b/engines/scumm/players/player_ad.cpp
index 2de8ac96e4..0223da5acb 100644
--- a/engines/scumm/players/player_ad.cpp
+++ b/engines/scumm/players/player_ad.cpp
@@ -24,7 +24,6 @@
#include "scumm/imuse/imuse.h"
#include "scumm/scumm.h"
#include "scumm/resource.h"
-#include "scumm/saveload.h"
#include "audio/fmopl.h"
#include "audio/mixer.h"
diff --git a/engines/scumm/players/player_mac.h b/engines/scumm/players/player_mac.h
index 897960d775..713d72c2ce 100644
--- a/engines/scumm/players/player_mac.h
+++ b/engines/scumm/players/player_mac.h
@@ -27,7 +27,6 @@
#include "common/util.h"
#include "common/mutex.h"
#include "scumm/music.h"
-#include "scumm/saveload.h"
#include "audio/audiostream.h"
#include "audio/mixer.h"
diff --git a/engines/scumm/saveload.cpp b/engines/scumm/saveload.cpp
index 3e0a7f1ef8..db365533c2 100644
--- a/engines/scumm/saveload.cpp
+++ b/engines/scumm/saveload.cpp
@@ -35,7 +35,6 @@
#include "scumm/he/intern_he.h"
#include "scumm/object.h"
#include "scumm/resource.h"
-#include "scumm/saveload.h"
#include "scumm/scumm_v0.h"
#include "scumm/scumm_v7.h"
#include "scumm/sound.h"
@@ -69,6 +68,7 @@ struct SaveInfoSection {
#define SaveInfoSectionSize (4+4+4 + 4+4 + 4+2)
+#define CURRENT_VER 98
#define INFOSECTION_VERSION 2
#pragma mark -
diff --git a/engines/scumm/saveload.h b/engines/scumm/saveload.h
deleted file mode 100644
index a0f45a32fc..0000000000
--- a/engines/scumm/saveload.h
+++ /dev/null
@@ -1,55 +0,0 @@
-/* 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 2
- * 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, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- *
- */
-
-#ifndef SCUMM_SAVELOAD_H
-#define SCUMM_SAVELOAD_H
-
-#include "common/scummsys.h"
-#include "common/serializer.h"
-
-namespace Scumm {
-
-/**
- * The current savegame format version.
- * Our save/load system uses an elaborate scheme to allow us to modify the
- * savegame while keeping full backward compatibility, in the sense that newer
- * ScummVM versions always are able to load old savegames.
- * In order to achieve that, we store a version in the savegame files, and whenever
- * the savegame layout is modified, the version is incremented.
- *
- * This roughly works by marking each savegame entry with a range of versions
- * for which it is valid; the save/load code iterates over all entries, but
- * only saves/loads those which are valid for the version of the savegame
- * which is being loaded/saved currently.
- */
-#define CURRENT_VER 98
-
-/**
- * An auxillary macro, used to specify savegame versions. We use this instead
- * of just writing the raw version, because this way they stand out more to
- * the reading eye, making it a bit easier to navigate through the code.
- */
-#define VER(x) Common::Serializer::Version(x)
-
-} // End of namespace Scumm
-
-#endif
diff --git a/engines/scumm/sound.h b/engines/scumm/sound.h
index 440570307d..740420eb91 100644
--- a/engines/scumm/sound.h
+++ b/engines/scumm/sound.h
@@ -28,7 +28,6 @@
#include "common/str.h"
#include "audio/mididrv.h"
#include "backends/audiocd/audiocd.h"
-#include "scumm/saveload.h"
namespace Audio {
class Mixer;