aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/gfx/music_switch.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2016-06-28 21:18:13 -0400
committerPaul Gilbert2016-07-15 19:25:44 -0400
commit5c2a39e74ac1cf8b67e17fe25e00bcca487c9f99 (patch)
treef23fbf77704d499bc071763367b71229cebfa3f2 /engines/titanic/gfx/music_switch.cpp
parent0715be79269a0830136f76e78da2e893ce2e2ed4 (diff)
downloadscummvm-rg350-5c2a39e74ac1cf8b67e17fe25e00bcca487c9f99.tar.gz
scummvm-rg350-5c2a39e74ac1cf8b67e17fe25e00bcca487c9f99.tar.bz2
scummvm-rg350-5c2a39e74ac1cf8b67e17fe25e00bcca487c9f99.zip
TITANIC: Set up empty message targets for classes without messages
Diffstat (limited to 'engines/titanic/gfx/music_switch.cpp')
-rw-r--r--engines/titanic/gfx/music_switch.cpp39
1 files changed, 39 insertions, 0 deletions
diff --git a/engines/titanic/gfx/music_switch.cpp b/engines/titanic/gfx/music_switch.cpp
new file mode 100644
index 0000000000..69e8f2eb4c
--- /dev/null
+++ b/engines/titanic/gfx/music_switch.cpp
@@ -0,0 +1,39 @@
+/* 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.
+ *
+ */
+
+#include "titanic/gfx/music_switch.h"
+
+namespace Titanic {
+
+EMPTY_MESSAGE_MAP(CMusicSwitch, CMusicControl)
+
+void CMusicSwitch::save(SimpleFile *file, int indent) const {
+ file->writeNumberLine(1, indent);
+ CMusicControl::save(file, indent);
+}
+
+void CMusicSwitch::load(SimpleFile *file) {
+ file->readNumber();
+ CMusicControl::load(file);
+}
+
+} // End of namespace Titanic